Skip to content
CSRF Disclosed report Beginner

self cross site scripting

The search page reflected user input without validation, allowing an attacker to inject JavaScript. An attacker could steal cookies or keystrokes from a victim who follows a crafted link.

tanvi07 Follow

Originally disclosed on HackerOne

  • Disclosed after 6 days

Vulnerability Exploited : cross site scripting using csrf

Vulnerable URL:https://gratipay.com/search

Vulnerability Explanation :The application is vulnerable with Reflected Cross Site Scripting. Here application fails to validate user supplied inputs due to which an attacker can inject his own JavaScript on your web application.

Impact :The attacker can access the victim's cookies associated with the website using document.domain, send them to his own server, and use them to hijack the session of target user. An attacker can also register a keyboard event listener using addEventListener and then send all of the user's keystrokes to his own server, potentially recording sensitive information such as passwords and credit card numbers.

Payload : <script>alert(document.domain>

severity: high

step to reproduce:

  1. login the URL https://gratipay.com.
  2. go to search button.

3)use the proxy like burp suit.and intercept the request of search box. 4)generate the csrf code ,then after write in search to above payload. 5) csrf text file run in the browser 6) you can see that cross site scripting.

Attachments

gratipay2.PNG
gratipay2.PNG From the original on HackerOne
gratipay1.PNG
gratipay1.PNG
gratipay3.PNG
gratipay3.PNG

The original report as published on HackerOne, by tanvi07. 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 search parameter was echoed into the HTML response without output encoding or input validation.

Impact

An attacker could access the victim's cookies and hijack their session, or record keystrokes to capture sensitive information.

What the attacker needed

Attacker can generate a CSRF token; victim runs the crafted CSRF file in the browser

How it was found

  1. Log in to the site.
  2. Go to the search page.
  3. Intercept the search request with a proxy.
  4. Generate a CSRF token and place the payload in the search field.
  5. Run the CSRF file in the browser.
  6. Observe the script executing.

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.

A website took text from a search box and put it straight into the page without checking it. That let an attacker put their own code on the page, so when someone else opened a special link, the attacker's code ran in that person's browser and could read their cookies or record what they typed.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More from Gratipay

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.