~/talk

Hacking SQL Injection for Remote Code Execution on a LAMP Stack

Talkat DEF CON 23 · 2015-08-06..08-09· [security, php]
name:Nemus
links:none on file
slides:none on file

Shows SQL injection on a LAMP stack escalating from blind numeric tests to remote code execution: verifies injection with AND/OR and multiplication, fingerprints backend via UNION SELECT to get MySQL version, dumps mysql.user and /etc/passwd, cracks MD5 hashes using hash-id and hashcat/john, writes a PHP webshell via INTO OUTFILE, and achieves a remote shell (PentestMonkey PHP reverse shell). Tools used: curl, sqlmap, nmap fingerprints; demonstrates successful file write and RCE and outlines wildcard poisoning via tar/scp as an alternate persistence route.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:30Workshop prerequisites
  3. 2:22SQL injection fundamentals
  4. 4:40Lab setup and architecture
  5. 7:25Vulnerable code example
  6. 8:35Testing for vulnerabilities
  7. 11:20Fingerprinting the server
  8. 13:15Identifying the database
  9. 16:16Data enumeration
  10. 19:24Password cracking
  11. 21:42Attacking the operating system
  12. 26:16Remote code execution
  13. 36:16Mitigation and conclusions
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.