Skip to content
XSS Disclosed report Beginner

XSS

The report claims a cross-site scripting vulnerability exists on old.reddit.com and reddit.com, but provides no specific vulnerable parameter or context. An attacker could potentially run script in a victim's browser, but the report does not demonstrate this.

shylo Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 5 months

hi security team i have found a XSS in old.reddit.com and in reddit.com Description: Cross-site scripting (also known as XSS) is a web security vulnerability that allows an attacker to compromise the interactions that users have with a vulnerable application. It allows an attacker to circumvent the same origin policy, which is designed to segregate different websites from each other. Cross-site scripting vulnerabilities normally allow an attacker to masquerade as a victim user, to carry out any actions that the user is able to perform, and to access any of the user's data. If the victim user has privileged access within the application, then the attacker might be able to gain full control over all of the application's functionality and data.

Step-by-set Reproduction instructions

  1. open web browser and navigate to the page.
  2. the open devtool
  3. an add the payload
  4. payload : eval('ale'+'rt(0)'); Function('ale'+'rt(1)')();

Impact

The actual impact of an XSS attack generally depends on the nature of the application, its functionality and data, and the status of the compromised user. For example:

In a brochureware application, where all users are anonymous and all information is public, the impact will often be minimal.
In an application holding sensitive data, such as banking transactions, emails, or healthcare records, the impact will usually be serious.
If the compromised user has elevated privileges within the application, then the impact will generally be critical, allowing the attacker to take full control of the vulnerable application and compromise all users and their data.

Attachments

Screenshot_(4).png
Screenshot_(4).png From the original on HackerOne
Screenshot_(5).png
Screenshot_(5).png
Screenshot_(6).png
Screenshot_(6).png

The original report as published on HackerOne, by shylo. 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 fails to properly encode or validate user-supplied input before including it in a web page, but the report does not identify the specific input or context.

Impact

If the XSS is real, an attacker could masquerade as a victim user and perform actions or access data available to that user, but the report provides no proof that the vulnerability is exploitable.

What the attacker needed

Attacker can inject script into a page

How it was found

  1. Open a web browser and navigate to the page.
  2. Open the developer tools.
  3. Add the payload.

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.

Cross-site scripting (XSS) is a flaw where a website lets an attacker sneak their own JavaScript code into a page that other people view. That code then runs in the victim's browser as if it came from the trusted site, so it can read data or act on the victim's behalf. This report only says XSS exists and shows a generic script snippet, without explaining where or how it is triggered.

What is XSS?

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

More by shylo

View all

1 more disclosed report, best first.

More from Reddit

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.