Skip to content
RCE Disclosed report Beginner

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.

t-pwn Follow

Originally disclosed on HackerOne

  • 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.

The original report as published on HackerOne, by t-pwn. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by t-pwn

View all

5 more disclosed reports, best first.

More from MyCrypto

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.