xss and html injection on ( https://labs.history.state.gov)
The id parameter on the card.xq page was reflected into the page without sanitisation, allowing an attacker to inject HTML or JavaScript. An attacker could use this to alter the page for phishing or to run script in a victim's browser.
- Triaged in 6 days
- Fixed in 31 days
- Disclosed after 2 months
Summary:
there's possible xss and html injection on your website https://labs.history.state.gov through /card.xq?id= parameter because your web did not sanatize user input and you have vulnerable JavaScript libraries jQuery 1.11.3
Steps To Reproduce:
html injection P O C code
xss P O C code
##Remediation Guidance
- you have to sanitize user input before using it
- update your JavaScript libraries jQuery 1.11.3
Supporting Material/References:
[list any additional material (e.g. screenshots, logs, etc.)]
- [attachment / reference]
Impact
1.. since html is a web language attacker can use this to change complete page look to do phishing attacks to compromise users 2.. attacker can use this to execute malicious javascript in user browser
Attachments
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 id parameter was reflected into the page without output encoding or sanitisation.
Impact
An attacker could change the page's appearance for phishing or execute malicious JavaScript in a user's browser.
What the attacker needed
Victim clicks a crafted link
The fix
User input should be sanitised or output-encoded before being placed in the page, and the outdated jQuery library should be updated.
How it was found
- Open the card.xq page with a crafted id value containing HTML.
- Observe the injected HTML rendered on the page.
- Repeat with a script payload in the id value to trigger JavaScript.
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 sometimes puts text from the address bar straight into the page. If it does not clean that text first, an attacker can put their own HTML or JavaScript in the link, and the victim's browser will treat it as part of the site. That lets the attacker change how the page looks or run code in the victim's session.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.