{"id":"CVE-2024-27300","aliases":["CVE-2024-27300","GHSA-q7g6-xfh2-vhpx"],"related":[],"kind":"vulnerability","state":"published","title":"phpMyFAQ Stored XSS at user email","summary":"phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. The `email` field in phpMyFAQ's user control panel page is vulnerable to stored XSS attacks due to the inadequacy of PHP's `FILTER_VALIDATE_EMAIL` function, which only validates the email format, not its content. This vulnerability enables an attacker to execute arbitrary client-side JavaScript within the context of another user's phpMyFAQ session. This vulnerability is fixed in 3.2.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. The `email` field in phpMyFAQ's user control panel page is vulnerable to stored XSS attacks due to the inadequacy of PHP's `FILTER_VALIDATE_EMAIL` function, which only validates the email format, not its content. This vulnerability enables an attacker to execute arbitrary client-side JavaScript within the context of another user's phpMyFAQ session. This vulnerability is fixed in 3.2.6.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe `email` field in phpMyFAQ's user control panel page is vulnerable to stored XSS attacks due to the inadequacy of PHP's `FILTER_VALIDATE_EMAIL` function, which only validates the email format, not its content. This vulnerability enables an attacker to execute arbitrary client-side JavaScript within the context of another user's phpMyFAQ session.\n\n### Details\nDespite using PHP's `FILTER_VALIDATE_EMAIL` function, the email field does not adequately validate the content of the email address. This means that malicious input, such as JavaScript code, can be accepted and stored in the database without being detected. When the stored data is retrieved and displayed on web pages, it is not properly sanitized to remove or neutralize any potentially harmful content, such as JavaScript code which leads to Stored XSS.\n\n### PoC\n1.  Login as any user, go to the user control panel, change email to any valid email and intercept the request.\n\n2.  Modify the request’s email parameter to the following payload:  `\"><svg/onload=confirm('XSS')>\"@x.y`\n![image](https://github.com/thorsten/phpMyFAQ/assets/63487456/1c5a5431-773a-4e26-95ba-e2563f681ca1)\n\n\n3. Send the request and see that the XSS is triggered in the user control panel page.\n![image](https://github.com/thorsten/phpMyFAQ/assets/63487456/b0328fcc-3c03-4997-8121-1f5e7cf89178)\n\n\n4. Also affects any user who browse to \"../admin/?action=user&user_action=listallusers\"\n![image](https://github.com/thorsten/phpMyFAQ/assets/63487456/3af1add8-ea64-4350-a77e-d14da6084d4c)\n\n\n### Impact\nThis allows an attacker to execute arbitrary client side JavaScript within the context of another user's phpMyFAQ session.","format":"markdown","source":"ghsa"},{"lang":"es","text":"phpMyFAQ es una aplicación web de preguntas frecuentes de código abierto para PHP 8.1+ y MySQL, PostgreSQL y otras bases de datos. El campo `email` en la página del panel de control de usuario de phpMyFAQ es vulnerable a ataques XSS almacenados debido a la insuficiencia de la función `FILTER_VALIDATE_EMAIL` de PHP, que solo valida el formato del correo electrónico, no su contenido. Esta vulnerabilidad permite a un atacante ejecutar JavaScript arbitrario del lado del cliente dentro del contexto de la sesión phpMyFAQ de otro usuario. Esta vulnerabilidad se soluciona en 3.2.6.","source":"nvd"}],"published":"2024-03-25T18:30:35.810Z","modified":"2026-09-10T03:50:10.701Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"3.2.5","status":"affected"}],"vendor":"thorsten","product":"phpMyFAQ","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"3.2.6","status":"affected"}],"vendor":"thorsten","product":"phpmyfaq","cpe":"cpe:2.3:a:thorsten:phpmyfaq:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.2.5","status":"affected","fixed":"3.2.6"}],"ecosystem":"Packagist","package":"phpmyfaq/phpmyfaq","purl":"pkg:composer/phpmyfaq/phpmyfaq","source":"ghsa"},{"ranges":[{"status":"affected","version":"3.2.5"}],"vendor":"phpmyfaq","product":"phpmyfaq","cpe":"cpe:2.3:a:phpmyfaq:phpmyfaq:3.2.5:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-q7g6-xfh2-vhpx","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/thorsten/phpMyFAQ/commit/09336b0ff0e0a04aa0c97c5975651af4769d2459","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/thorsten/phpMyFAQ/commit/de90315c9bd4ead5fe6ba5586f6b016843aa8209","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27300","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/thorsten/phpMyFAQ","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-03-25T19:29:59.933Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-27300","url":"https://www.cve.org/CVERecord?id=CVE-2024-27300","licence":"CVE Terms of Use","modified":"2024-08-02T00:28:00.229Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q7g6-xfh2-vhpx","url":"https://github.com/advisories/GHSA-q7g6-xfh2-vhpx","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:10.701Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-27300","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27300","licence":"Public domain","modified":"2026-06-17T07:19:36.197Z"}],"updatedAt":"2026-11-25T22:58:37.881Z","epss":{"score":0.00691,"percentile":0.54093,"date":"2026-12-01T12:00:22.000Z"}}