SMB SSRF in emblem editor exposes taketwo domain credentials, may lead to RCE
The researcher found that the emblem editor accepted crafted SVG files which ImageMagick processed, causing it to make SMB requests to attacker-controlled UNC paths. This leaked the server's login credentials and NTLMv2 hash, which could be cracked offline or used in an SMB relay attack.
Originally disclosed on HackerOne
- Triaged in 28 hours
- Fixed in 26 days
- Paid in 13 days
- Disclosed after 2 months
Summary by the program
In this report, the researcher found that by submitting crafted SVG files, he was able to establish a listener on our server that enabled SSRF attacks. This potentially could have been pivoted to carry out more damaging attacks as well. We improved our validation of user-submitted SVG files to prevent this from happening in the future.
Summary by the researcher
I found that Imagemagick would happily send the users' login and NTLMv2 hash to remote attackers when processing UNC paths. This could be leveraged to crack the server password offline or potentially in an SMB relay attack.
Thanks to Dirk Lemstra for fixing this in Imagemagick too! https://github.com/ImageMagick/librsvg/commit/f9d69eadd2b16b00d1a1f9f286122123f8e547dd
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
The server's credentials and NTLMv2 hash could be captured, allowing offline password cracking or an SMB relay attack, and the researcher notes this could potentially be pivoted to more damaging attacks.
What the attacker needed
Ability to upload an SVG to the emblem editor
The fix
The site improved validation of user-submitted SVG files, and the underlying ImageMagick issue was also fixed upstream.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
An SVG is an image format that can contain instructions. The researcher made an SVG that told ImageMagick to connect to a server he controlled, and during that connection the server sent its Windows username and an NTLM hash. That hash can be attacked offline or relayed to impersonate the server.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.