XSS in dp.la in dpla/dpla-frontend
Reported on
Nov 7th 2022
Description
dpla-frontend
which is a frontend application of dp.la is vulnerable to XSS.
Proof of Concept
https://dp.la/item?itemId=%3C/script%3E%3Cdiv%20style=%27color:red;font-size:100px;position:fixed;top:0;left:0;width:100%;height:100vh;background:white;%27%3Einput%20your%20password%3Cinput%3E%3C/div%3E%3Cxmp%3E/../../../2cfb4681d6dfe4dc3dd4a2c83d58ca7e
dp.la is protected with a content security policy against the execution of malicious JavaScript, but the site is vulnerable to HTML injection and the source code repository itself is vulnerable to XSS.
Impact
A malicious JavaScript is evaluated on the website, which may allow the attacker to transfer private information such as cookies, which may include session information, from the victim's machine to the attacker. Phishing attacks could be used to emulate trusted web sites and trick the victim into entering a password, allowing the attacker to compromise the victim's account on that web site.
SECURITY.md
a year ago