Cross-site scripting in AWStats - CVE-2022-46391

 

Cross-site scripting in AWStats - CVE-2022-46391

Published: February 28, 2023


Vulnerability identifier: #VU72633
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2022-46391
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data in the hostinfo plugin due to printing a response from Net::XWhois without proper checks. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

AWStats
Fedora
Ubuntu
awstats (Ubuntu package)
awstats

How to mitigate CVE-2022-46391

Install update from vendor's website.

AWStats - update to 7.9
awstats (Ubuntu package) - addressed in versions Ubuntu Pro, 7.6+dfsg-2ubuntu0.18.04.2, 7.6+dfsg-2ubuntu0.20.04.2, 7.8-2ubuntu0.22.04.1, 7.8-2ubuntu0.22.10.1
awstats - addressed in versions 7.8-3.el7, 7.8-9.el8, 7.8-9.el9, 7.8-9.fc36, 7.8-9.fc37

External References

Related Security Bulletins