Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is a /@ url found in spam able to be resolved?

I recently received an email containing the following chunk (don't click!):

<A HrEf="/@/0X0a290d92b/UALI=28389-UI=176738575-OI=279-ONI=5477-SI=0-CI=0-BI=577-II=27913-IDSP=1-KLEM=11-TIE=A-IDE=276135-MID=572-FID=0-DIOM=0" sTyLe=color:#000;font-size:10px;font-family:arial;>
<span>UNS</span></a>

Here is a link to the raw email: https://gist.github.com/anonymous/16963a230cab0a3a1bcfc81209f297f1

As far as I know, /@ is not a valid url. How is my browser able to resolve it to a site?

like image 373
Neal Fultz Avatar asked Apr 15 '16 22:04

Neal Fultz


1 Answers

As it was already mentioned in comments @ is allowed in URL paths.

Regarding URL resolving. I guess that attacker uses <base> tag to explicitly set default URL for all relative links in email body and hopes that your browser/email client will resolve it for you.

UPDATE

The original guess might be correct since it is not supported by majority of mail clients

After a bit of investigation I realized that 0x0A290D92B is actually is hex-encoded IPv4 address 162.144.217.43. The only thing which I do not yet understood is how it is supposed to be transformed to http(s)://0x0A290D92B in browser. It seems like the attacker is targeting specific browser/mail client behavior.

like image 87
vsminkov Avatar answered Nov 11 '22 09:11

vsminkov