Kolibri — 1 vulnerability check
noctis ships 1 vulnerability check for Kolibri, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Kolibri 2.0 HEAD Request Stack Buffer Overflow
| CVE | CVE-2010-5301 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | tcp_connect, script, match · highest QoD 70 |
| Feed | tests/vulnerabilities/kolibri/CVE-2010-5301.yaml |
Kolibri 2.0, a small Windows web server, has a stack-based buffer overflow in the handling of the URI of a HEAD request. A remote unauthenticated attacker can send a very long URI to crash the server or execute arbitrary code with the privileges of the web server. No fixed release is available.
The test sends one plain `GET / HTTP/1.0` request (over TLS on HTTPS services), reads the `Server:` response header and reports the host when it advertises `Kolibri-2.0`. Other Kolibri releases and other servers are not reported.
This is a version check, on purpose: the only way to confirm the flaw is to send the oversized request itself, which would crash the server, so it is never sent. The test only reads the response headers of the home page.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET / HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
ver.versionfor^2\.0$→ finding QoD 70: Server header '…': Kolibri … is affected (stack overflow via a long HEAD URI; not sent, it would crash the server).
References:
Feed source — tests/vulnerabilities/kolibri/CVE-2010-5301.yaml
# Ported from OpenVAS/Greenbone NASL 2011/gb_kolibri_45579.nasl (GPL-2.0-only).
# Its safe-checks branch compares the `Server: Kolibri-<version>` banner with 2.0
# (the only release in the NVD record, cpe senkas:kolibri:2.0); its active branch
# sends an oversized HEAD URI with a SEH/return-address payload, which crashes
# the server or runs shellcode. That is never sent here: the overflow has no
# benign proof, so the Server header is the only evidence (QoD 70).
# Better than the NASL: only the Server: lines of the header block are read,
# raw tcp_connect (a non-conformant reply is not dropped by an HTTP client) and
# HTTPS services are covered too.
# CVSS: NVD has only a v2 score (7.5); kept as is (check_cvss skips it).
uid: 616502fc-9fdc-4aa2-b7a0-d307fa99ddcf
name: "Kolibri 2.0 HEAD Request Stack Buffer Overflow (CVE-2010-5301)"
description: |
Kolibri 2.0, a small Windows web server, has a stack-based buffer overflow
in the handling of the URI of a HEAD request. A remote unauthenticated
attacker can send a very long URI to crash the server or execute arbitrary
code with the privileges of the web server. No fixed release is available.
The test sends one plain `GET / HTTP/1.0` request (over TLS on HTTPS services),
reads the `Server:` response header and reports the host when it advertises
`Kolibri-2.0`. Other Kolibri releases and other servers are not reported.
This is a version check, on purpose: the only way to confirm the flaw is to
send the oversized request itself, which would crash the server, so it is
never sent. The test only reads the response headers of the home page.
cves: [CVE-2010-5301]
cvss: 7.5
severity: high
confidence_base: 0.30
category: rce
tags: [kolibri, buffer-overflow, rce, windows, version-check, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2010-5301"
- "http://www.securityfocus.com/bid/45579"
steps:
# 1 - one plain request; only its response headers are used.
- id: probe
action: tcp_connect
port: "{{port}}"
send: "GET / HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: resp
# 2 - look for Kolibri-2.0 in every Server: header of the header block.
- id: version
action: script
store_as: ver
code: |
let out = #{ vulnerable: false, version: "", server: "" };
if type_of(resp.banner) == "string" {
let head = resp.banner;
let cut = stridx(head, "\r\n\r\n");
if cut < 0 { cut = stridx(head, "\n\n"); }
if cut >= 0 { head = substr(head, 0, cut); }
for raw in split(head, "\n") {
let line = eregmatch("^server:[ \\t]*([^\\r]*)", raw, true);
if line.len() < 2 { continue; }
let m = eregmatch("(^|[^A-Za-z0-9_])Kolibri[-/ ]([0-9]+(\\.[0-9]+)*)", line[1], true);
if m.len() < 3 { continue; }
if m[2] != "2.0" { continue; }
out.vulnerable = true;
out.version = m[2];
out.server = line[1];
break;
}
}
out
- id: vulnerable_version
action: match
condition: "ver.vulnerable == true"
source: ver.version
pattern: "^2\\.0$"
on_match:
stop: true
finding:
confidence_delta: 0.40
qod: 70
evidence: "Server header '{{ver.server}}': Kolibri {{ver.version}} is affected (stack overflow via a long HEAD URI; not sent, it would crash the server)."
remediation: "No fixed release exists. Replace Kolibri with a maintained web server, or restrict access to it with a firewall."