HTML Injection on https://www.mycrypto.com/
The notifier displayed an uploaded keystore file's name without sanitising it, so a crafted filename could inject arbitrary HTML into the page. An attacker could use this to alter page content or present misleading elements to a user.
- Triaged in 29 hours
- Fixed in 24 days
- Disclosed after 24 days
Summary by the program
A vulnerability was reported by t-pwn that allowed arbitrary HTML injection via the notifier functionality. After a keystore file was uploaded, the filename would be shown without first sanitizing it. MyCrypto has since fixed our notification to no longer display the unsanitized filename.
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
Root cause
Likely the notifier inserted the uploaded filename into the page without encoding or sanitising it first.
Impact
An attacker could inject arbitrary HTML into the notifier display, which could be used to mislead the user viewing the page.
What the attacker needed
Upload a keystore file; crafted filename
The fix
The notifier was fixed so it no longer displays the unsanitised filename.
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.
When you upload a file, a website often shows the file's name back to you. If the site puts that name straight into the page without cleaning it, someone can name a file in a way that adds their own HTML (the code that builds web pages) to the page. That lets them change what the page shows, for example fake messages or links.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.