Content-Injection/XSS ████
The images.ashx endpoint reflects unsanitised user input in the 'loc' parameter, allowing an attacker to inject HTML and JavaScript. An attacker could execute arbitrary script in a victim's browser to steal session cookies or display fake login forms.
- Triaged in 3 days
- Fixed in 6 months
- Disclosed after 2.8 years
Summary:
Hi,
It is possible to inject content and vulnerable to reflected Cross Site Scripting. Affected domain: https://██████████ Used browser: Mozilla.
Impact
One of the most common XSS attack vectors is to hijack legitimate user accounts by stealing their session cookies. This allows attackers to impersonate victims and access any sensitive information or functionality on their behalf. Let's dissect how this can be achieved.
An attacker could inject fake login forms and ask for military credentials.
Step-by-step Reproduction Instructions
-
XSS: https://██████/images.ashx?loc=%3C/div%3E%3Cimg%20src=%22youtube.com%22%20onerror=alert(%22TestingXSS%22)%3E
-
Content Injection: https://██████/images.ashx?loc=%3C/div%3E%3Cimg%20src=%22https://███.files.wordpress.com/2016/12/facebook-instagram-open-redirect.jpeg%22%3E
Suggested Mitigation/Remediation Actions
Sanitize your input, by escaping HTML special characters.
Thanks, Diogo Real
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 fails to escape or sanitise user-supplied input before including it in the HTML response.
Impact
An attacker could hijack user accounts by stealing session cookies or inject fake login forms to capture credentials.
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.
The website takes a value from the URL and puts it directly into the page without cleaning it. An attacker can craft a link that, when clicked, runs their own code in the victim's browser. This is called reflected cross-site scripting (XSS).
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.