Finding Bug DMRC Reflected Xss and HTML Injection
A reflected cross-site scripting and HTML injection flaw existed in a GET parameter on an intranet login page. An attacker could inject malicious scripts or HTML into the page, potentially leading to session hijacking or data disclosure.
Published on medium.com
I am Hacker Halt, a cybersecurity researcher specializing in bug bounty hunting and red team engagements. Recently, I identified a vulnerability within the subdomain of dmrc.org, specifically a reflected XSS (Cross-Site Scripting) and HTML injection flaw within the GET parameter.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application failed to properly validate or escape user-supplied input in the 'msg' GET parameter before reflecting it into the page.
Impact
An attacker could execute arbitrary JavaScript in a victim's browser session, potentially leading to session hijacking or unauthorised data disclosure.
What the attacker needed
Victim clicks a crafted link
The fix
The vulnerability was fixed by implementing content-based escaping for user inputs, particularly in parameters susceptible to injection.
How it was found
- Enumerate subdomains of the target using tools like Gobuster.
- Discover hidden directories using wordlists such as SecLists.
- Identify vulnerable parameters in URLs, specifically the GET parameter.
- Craft payloads to exploit the reflected XSS and HTML injection flaws.
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 write-up has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when a website takes input from a user and puts it directly into the page without cleaning it first. An attacker can craft a link that contains code, and when someone clicks it, that code runs in their browser as if it came from the website. This can let the attacker steal cookies (small pieces of data that keep you logged in) or do other harmful things.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.