CVE-2010-2477 Paste is vulnerable to Cross-site Scripting via vectors involving a 404 status code
Remote attackers can inject arbitrary web script or HTML via crafted 404 status codes in the Paste library, potentially compromising user sessions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2010-2477?
CVE-2010-2477 is a medium-severity cross-site scripting vulnerability in n/a, published on 5 Nov 2010. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Multiple cross-site scripting (XSS) vulnerabilities in the paste.httpexceptions implementation in Paste before 1.7.4 allow remote attackers to inject arbitrary web script or HTML via vectors involving a 404 status code, related to (1) paste.urlparser.StaticURLParser, (2) paste.urlparser.PkgResourcesParser, (3) paste.urlmap.URLMap, and (4) HTTPNotFound.
Weakness: CWE-79
Which versions are affected by CVE-2010-2477?
3 open source packages ship an affected version, including paste. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
paste PyPI | All versions | 1.7.4 |
paste PyPI | All versions | 1.7.4 |
paste PyPI | All versions | 1.7.4 |
Products include Pythonpaste Paste.
How do I fix CVE-2010-2477?
Upgrade paste to 1.7.4 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2010-2477 being exploited?
There is no known exploitation of CVE-2010-2477 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2010-2477, GHSA-7gfc-2v6g-6w9f, PYSEC-2010-29.