Stored-xss is working
A stored cross-site scripting flaw was found in a company name field, allowing an attacker to inject JavaScript that executes when other users view the page. The attacker could steal cookies and potentially escalate privileges.
Originally disclosed on Bugcrowd
- Accepted in 3 days
- Fixed in 5 months
- Disclosed after 2.3 years
Summary by agnihackers123
hello @Indeed I found stored-cross site on the activity which allows an attacker to steal admin account cookies.
Impact
Users can execute JavaScript code in the context of other users. This is critical when targeted users have high privileges. Attackers are then able to grant themselves the administrator privileges and even takeover the ownership of the New Relic account.
The hacker selected the Cross-site Scripting (XSS) - Stored weakness. This vulnerability type requires contextual information from the hacker. They provided the following answers:
STEP TO REPRODUCE:-
1)open the url:- [site] 2)Then type the company name is "hello" 3)Then change hello to javascript is entered 4)next button > click 5)Then show the popup message . 6)next page is on then refresh the page cookie is working popup message is show. 7)This is stored XSS.
This vuln is stored-xss . Attacker targeted users have high privileges. The hacker selected the Cross-site Scripting (XSS) - Stored weakness.
-->>Even attacker can easily get the cookie.
Thanks.
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 did not properly sanitise or encode user input before storing and displaying it.
Impact
An attacker could execute JavaScript in other users' browsers, steal cookies, and potentially gain administrator privileges or take over the account.
What the attacker needed
Ability to enter a company name; victim views the affected page
How it was found
- Open the provided URL.
- Type a company name such as 'hello'.
- Replace the company name with JavaScript code.
- Click the next button.
- Observe a popup message.
- Refresh the page and see the popup again, confirming stored XSS.
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.
Stored cross-site scripting (XSS) happens when a website saves harmful code, like JavaScript, and later shows it to other people without cleaning it. Here, typing JavaScript into a company name field made a popup appear for anyone who visited that page, which could let an attacker take over accounts.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.