id: CVE-2024-13888

info:
  name: WPMobile.App <= 11.56 - Open Redirect
  author: s4e-io
  severity: high
  description: |
    The WPMobile.App plugin for WordPress is vulnerable to Open Redirect in all versions up to, and including, 11.56. This is due to insufficient validation on the redirect URL supplied via the 'redirect' parameter. This makes it possible for unauthenticated attackers to redirect users to potentially malicious sites if they can successfully trick them into performing an action.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/wpappninja/wpmobileapp-1156-open-redirect-via-redirect-parameter
    - https://nvd.nist.gov/vuln/detail/CVE-2024-13888
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cve-id: CVE-2024-13888
    cwe-id: CWE-601
    epss-score: 0.00553
    epss-percentile: 0.67096
  metadata:
    verified: true
    max-request: 2
    vendor: amauri
    product: wpappninja
    framework: wordpress
    fofa-query: body="/wp-content/plugins/wpappninja"
    publicwww-query: "/wp-content/plugins/wpappninja"
  tags: cve,cve2024,redirect,wp,wordpress,wp-plugin,wpappninja

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

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

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "wpappninja")'
        internal: true

  - raw:
      - |
        GET /?redirect=aHR0cDovL29hc3QubWU=&WPMOBILE_LOCALE=en HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)oast\.me\/?(\/|[^.].*)?$'
# digest: 4a0a00473045022005086cf56d81279960d4d8da65070be6c593a59f4786d4c863dc0ee19ebecc69022100f635b84fbdc2bca752244b49eb3a76286e5f9cb646b14ed72238c9bb1b8292f4:922c64590222798bb761d5b6d8e72950