phpMyFAQ Cross-site Scripting
phpMyFAQ before 3.2.0-beta.2 allows stored cross-site scripting when an administrator restores a backup from a crafted file. The error message shown on the web page includes the invalid part of the file, so any JavaScript in that part executes in the administrator's browser.
thorsten/phpmyfaq
Originally disclosed on huntr
phpMyFAQ prior to 3.2.0-beta.2 contains a cross-site scripting vulnerability. When an administrator restores a backup from a file, it's possible to trigger an error with a specially crafted file that can be displayed on the web page. Since the error message contains the invalid part of the file, any JavaScript code in the file is executed.
From the GitHub Advisory Database (GHSA-v6g2-jwrm-h5r5, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute JavaScript in an administrator's browser, potentially leading to actions with administrative privileges.
What the attacker needed
Administrator restores a backup; crafted backup file
The fix
The vulnerability was fixed in version 3.2.0-beta.2.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Cross-site scripting (XSS) is when an attacker gets their own code to run in someone else's browser. Here, an administrator uploads a backup file to restore the system, and if the file is malformed, the error page shows part of the file without cleaning it. That means code hidden in the file runs with the administrator's permissions.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.