Publish Advisories

GHSA-pwh2-fpfr-x5gf
GHSA-q7g6-xfh2-vhpx
This commit is contained in:
advisory-database[bot]
2024-03-25 19:48:23 +00:00
parent e2471a737c
commit bb7251f339
2 changed files with 132 additions and 0 deletions
File diff suppressed because one or more lines are too long
@@ -0,0 +1,68 @@
{
"schema_version": "1.4.0",
"id": "GHSA-q7g6-xfh2-vhpx",
"modified": "2024-03-25T19:46:28Z",
"published": "2024-03-25T19:46:28Z",
"aliases": [
"CVE-2024-27300"
],
"summary": "phpMyFAQ stored Cross-site Scripting at user email",
"details": "### 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 requests 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.\n",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L"
}
],
"affected": [
{
"package": {
"ecosystem": "Packagist",
"name": "phpmyfaq/phpmyfaq"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.2.5"
},
{
"fixed": "3.2.6"
}
]
}
],
"versions": [
"3.2.5"
]
}
],
"references": [
{
"type": "WEB",
"url": "https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-q7g6-xfh2-vhpx"
},
{
"type": "WEB",
"url": "https://github.com/thorsten/phpMyFAQ/commit/09336b0ff0e0a04aa0c97c5975651af4769d2459"
},
{
"type": "WEB",
"url": "https://github.com/thorsten/phpMyFAQ/commit/de90315c9bd4ead5fe6ba5586f6b016843aa8209"
},
{
"type": "PACKAGE",
"url": "https://github.com/thorsten/phpMyFAQ"
}
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "MODERATE",
"github_reviewed": true,
"github_reviewed_at": "2024-03-25T19:46:28Z",
"nvd_published_at": null
}
}