RXSS on unsubscribe feature (affiliates.kromtech.com)
The unsubscribe page reflected the email parameter directly into the HTML without encoding it. An attacker could craft a link that runs script in the victim's browser on the affiliates domain.
Originally disclosed on HackerOne
- Triaged in 5 hours
- Fixed in 45 days
- Paid in 16 days
- Disclosed after 7 months
Summary by the program
Summary
Reflected Cross-Site Scripting attack on affiliates.kromtech.com domain. The problem in email parameter in /unsubscribe script that takes GET parameter and pass value of this parameter directly to HTML code of the page.
Step to reproduce
https://affiliates.kromtech.com/unsubscribe?email=kolabro</script><script>alert(document.domain)</script>
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
The email GET parameter was inserted into the page's HTML without output encoding or validation.
Impact
An attacker could run arbitrary script in a victim's browser on the affiliates domain, though the report does not demonstrate any specific harm beyond the alert.
What the attacker needed
Victim clicks a crafted link
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 a website takes something you type in the address bar and puts it straight into the page without cleaning it, an attacker can include code that the browser runs. Here the email value was placed into the page as raw HTML, so a crafted link could run a script in the visitor's browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.