Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') Affecting nzedb/nzedb package, versions <0.8.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.07% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-NZEDBNZEDB-6673152
  • published24 Apr 2024
  • disclosed14 May 2022
  • creditJan Grewe

Introduced: 14 May 2022

CVE-2017-18286  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade nzedb/nzedb to version 0.8.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') due to improper sanitization of user-supplied input in the 404 error page. An attacker can inject arbitrary web script or HTML by crafting a malicious URL, which is then reflected back to the user in the error message displayed on the 404 error page.

PoC

https://example.com/kushal=%3Cimg%20src=x%20onerror=alert('openbugbounty')%3E

CVSS Scores

version 3.1