Skip to content
SQL injection Write-up Advanced

Setting the Stage

During an assumed-breach internal penetration test, the tester used ARP spoofing to intercept an unencrypted HTTP session to a Zabbix server, then exploited a SQL injection in its PHP JSON RPC service to gain a webshell. From there, credentials found in traffic and environment variables led to an appliance and a Dell OneFS DFS server, where a weak access-control setting allowed an admin password change and access to domain controller backups, ultimately exposing every AD account hash.

blog.joeminicucci.com

Published on blog.joeminicucci.com

Often times internal penetration tests are so clear cut: the Blue Team gives you an account in AD, you fire up Bloodhound and get DA within a matter of hours or days. I recently was put on an engagement in which a client requested a simple dropbox to be deployed in a data center, as well as a low-level AD account to…

The author, on blog.joeminicucci.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a chain of weaknesses: unencrypted internal HTTP traffic, an unpatched SQL injection in Zabbix, credentials stored in traffic and environment variables, and a DFS access-control misconfiguration letting low-privilege users change admin credentials.

Impact

The tester obtained hashes for every AD account (over 120,000), cracked 30,000+ passwords including a Domain Administrator, and could craft golden tickets, giving full domain compromise and access to the entire DFS data store.

What the attacker needed

Physical access to data centre; flat network broadcast domain; unpatched Zabbix 3.0; unencrypted internal HTTP traffic

The fix

The text does not state a specific fix; it recommends network segmentation, tuned IDS/SIEM, EDR, least-privilege access reviews, and periodic audits of data systems.

How it was found

  1. Run LLMNR/mDNS poisoning and set up an NTLM relay against hosts without SMB signing.
  2. Use BetterCap to ARP spoof targets and sniff traffic with the net.sniff module.
  3. Capture a live HTTP session cookie for a Zabbix server and confirm access in a browser.
  4. Use the ZabbixPwn script, modified to hard-code the session ID, to get a webshell and upgrade it to a reverse shell.
  5. Run a passive tcpdump on the foothold to find more credentials, then log into an appliance and a Dell OneFS server.
  6. Change the OneFS admin password via the low-privilege account, enable SSH password auth, and access SMB shares containing domain controller backups.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The tester was allowed to plug a small device into the company's internal network, as if an attacker had got inside. Because some internal traffic was not encrypted, they could read a login session for a monitoring server and use a known flaw in its software to run commands on it. From there they found stored passwords that unlocked more systems, including backups of the directory that holds every user's password hash.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.