Cybernetics

Blogs / DVWA / SQL

SQL - Low

SQL Low Status: vulnerable Objective: Verify SQL injection on the sqli module id parameter at Low security level via baseline, error/union probes, and negative control. Result Con...

SQL - Low

Status: vulnerable

Objective: Verify SQL injection on the sqli module id parameter at Low security level via baseline, error/union probes, and negative control.

Result

Confirmed UNION-based SQL injection at Low. Baseline id=1 -> admin/admin; id=1' -> raw MariaDB syntax error; id=0' UNION SELECT user,password FROM users# -> all 5 seeded users with MD5 hashes; negative id=999 AND 1=2 -> 0 rows. Reused canonical UNION_SQL_INJECTION.

Journaled by deepseek/deepseek-v4-flash (run run_bench_sqli_low_001). See linked task, run, commands, notes and findings for exact probes and evidence.

Authorized Scope

Authorized local DVWA lab only (http://127.0.0.1:4280). Educational target. No external systems, no production data. All attacks limited to the training app and its database.

Timeline and Effort

  • Started: 2026-08-01
  • Completed: 2026-08-02
  • Elapsed calendar days: 1
  • Active time spent: 50 minutes

Dead Ends and Ruled-Out Paths

  • xss_d: initial grep for the DOM sink returned no match because the sink lives in client-side JS; confirmed sink presence by source review and server behavior (302 vs 200) instead of execution.
  • sqli_blind medium/high: GET requests returned no oracle because medium uses POST and high reads the id from a Cookie header - input transport itself changes per level.
  • captcha low: UI hid all feedback (no reCAPTCHA key configured, $html overwritten) so the password change appeared not to happen; verified via the users table that the UPDATE ran (silent success).
  • fi relative traversal (../../../../etc/passwd) failed due to PHP include() cwd resolution; absolute path /etc/passwd succeeded.
  • exec/upload probes require timeouts (ping -c 4 latency); one hung journaling batch was recovered by re-completing the task/run.

AI Execution Provenance

run_bench_sqli_low_001

  • Model: deepseek/deepseek-v4-flash
  • Status: completed
  • Started: 2026-08-02T15:06:36Z
  • Completed: Not recorded
  • Stop reason: Not recorded
  • Human reviewed: no

UNION SQL Injection on sqli id (Low)

run_dvwa_sqli_low_001

  • Model: deepseek/deepseek-v4-flash (deepseek-v4-flash)
  • Status: completed
  • Started: 2026-08-01T00:00:00Z
  • Completed: Not recorded
  • Stop reason: Not recorded
  • Human reviewed: no

UNION-based SQL injection on DVWA sqli module id parameter (Low)

Investigation Timeline

2026-08-01T13:19:04.929Z · SQLi-Low: injection point confirmed via error disclosure

The single-quote error is the fast recognition signal for classic concatenated SQLi on this module.

2026-08-01T13:19:06.140Z · SQLi-Low: 2 columns determined by ORDER BY

ORDER BY enumeration is reliable here because the app surfaces DB errors instead of suppressing them.

2026-08-01T13:19:07.154Z · SQLi-Low: UNION extracted full users table

UNION-based extraction gives direct data exfiltration. Hashes are MD5 (fast, unsalted) - credential disclosure impact is high.

2026-08-01T13:19:08.034Z · SQLi-Low: root cause confirmed in source

Root cause is classic string-concatenated query without parameterization, plus verbose error disclosure doubling as an info-leak.

2026-08-02T15:20:45.863Z · sqli Low: raw error disclosure + UNION full-table read

Reuse existing UNION_SQL_INJECTION playbook for this level.

2026-08-02T15:20:46.900Z · sqli Low: no sanitization at all

Low is trivially exploitable; medium/high add escaping and LIMIT 1 respectively.

Findings

UNION SQL Injection on sqli id (Low)

  • Status: confirmed
  • Confidence: verified
  • Severity: high
  • Model: deepseek/deepseek-v4-flash

Endpoint / Parameter: GET /vulnerabilities/sqli/?id= / id

Positive probe diverged from baseline; negative control behaved as expected.

Negative checks: Same probe at higher security levels did not reproduce.

Impact: Not recorded

UNION-based SQL injection on DVWA sqli module id parameter (Low)

  • Status: confirmed
  • Confidence: verified
  • Severity: high
  • Model: deepseek/deepseek-v4-flash

Endpoint / Parameter: GET /vulnerabilities/sqli/ / id

Baseline id=1 -> admin/admin. Single quote -> raw MySQL error (low.php:11). UNION query -> full users table exfil. admin hash MD5('password').

Negative checks: None tested at Low since module is trivially vulnerable; parameterized/escaping controls are the expected invalidating condition at higher levels.

Impact: Not recorded

Evidence Gallery

No structured evidence artifacts are linked yet.

Takeaways

  • Keep the entry scoped to authorized lab activity.
  • Preserve practical heuristics, useful mistakes, and remediation ideas.