U.S. Dept Of Defense · Report #1092678
Self stored Xss + Login Csrf
Validstatus
mediumseverity
20upvotes
30 Jun 2021disclosed
How it was found
Description:
User can set username between 8-20 alphanumeric characters, but with the help of inspect element attacker can manipulate ██████= & can insert a xss payload resulting in self stored xss & with the help of login csrf attacker can force the victim into attacker's account causing successful execution of javascript.
█████████
Payload used = "><img src onerror=confirm(document.cookie)>
Impact
Able to execute javascript in victim's browser
System Host(s)
█████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
- Visit Sign in and sign in
- Click on Change username --> Open inspect element --> change max length of new username and confirm username to
100 - Now enter the payload in
new usernameandconfirm usernamefield & click on submit --> Sign out - Enter the credentials to sign in --> Intercept request using burp --> Action --> Engagement Tools --> Generate Csrf poc --> Copy html.
- Open notepad & paste --> save as .html file
- Open the html file in any browser to confirm the vulnerability.
Poc attached :-
███████
Suggested Mitigation/Remediation Actions
Sanitization of input must be done