XSS in PhpWebGallery comments.php keyword parameter
A cross-site scripting (XSS) vulnerability exists in PhpWebGallery versions 1.5.2 and earlier, and possibly 1.6.0, in the comments.php script. The vulnerability is due to insufficient sanitization of user-supplied input in the 'keyword' parameter, allowing attackers to inject arbitrary web script or HTML.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary JavaScript or HTML in the context of the user's browser session, potentially leading to session hijacking, credential theft, or other client-side attacks.
If you can’t patch tonight, do this now.
As a temporary mitigation, restrict access to comments.php, implement web application firewall (WAF) rules to filter malicious input, and ensure that user-supplied data is properly sanitized and encoded before being rendered in the browser.
Patch, then assume compromise.
Upgrade to a version of PhpWebGallery where input to the 'keyword' parameter in comments.php is properly sanitized and output is correctly encoded to prevent XSS. If no patched version is available, apply a custom patch to sanitize user input.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.