Top Banner
Hacking SQL Server The best defense is a good offence
21

Hacking SQL Server The best defense is a good offence

Jan 03, 2016

Download

Documents

seth-emerson

Hacking SQL Server The best defense is a good offence. Learning. User groups Cisco, SQL, Virtualization Conferences GrrCON , SQL Saturday Hands-On Capture the Flag Forensics. RSS Exploit-DB updates SecurityFocus Vuln .. Content on Security Street Twitter @ markrussinovich - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Hacking  SQL Server The best defense is a good offence

Hacking SQL Server

The best defense is a good offence

Page 2: Hacking  SQL Server The best defense is a good offence

Learning User groups

o Cisco, SQL, Virtualization Conferences

o GrrCON, SQL Saturday Hands-On

o Capture the Flago Forensics

RSS Exploit-DB updates SecurityFocus Vuln.. Content on

Security Street Twitter

@markrussinovich @Wh1t3Rabbit @EggDropX @msftsecurity

Page 3: Hacking  SQL Server The best defense is a good offence

Initial Attack Vectors Network communication vital

Proxies

Corporate/Windows Firewalls

Page 4: Hacking  SQL Server The best defense is a good offence

Authentication vs. Authorization

Problem: Hackers don’t care about Authorization

Page 5: Hacking  SQL Server The best defense is a good offence

Tools BackTrack (bt)

• Bootable, vm, phoneo Zenmapo Metasploit framework

• 927+ exploits• 251+ payloads• Meterpreter

o Social Engineering Toolkito Netdiscovero Fasttrack & autopwn

Page 6: Hacking  SQL Server The best defense is a good offence

Tools (NEW HOTNESS) Kali Linux

• Bootable, vm, phoneo Metasploit framework

• 927+ exploits• 251+ payloads• Meterpreter

o Social Engineering Toolkito Netdiscovero BBQSQL (sql injection)o AND MORE!

Page 7: Hacking  SQL Server The best defense is a good offence

Meterpreter Payload Interesting Commands

o Getuido GetSystemo Pso killo Migrateo Shello Hashdumpo Webcam_snapo clearev

Page 8: Hacking  SQL Server The best defense is a good offence

Demo – Information Gathering & Exploit

Page 9: Hacking  SQL Server The best defense is a good offence

Patches and Misconfigurations

If you are not patching, no reason for pen testing Don’t forget 3rd party utilities Peer review servers cleanup

Page 10: Hacking  SQL Server The best defense is a good offence

Misconfigurations Blank or weak ‘sa’ password Default 3rd party passwords Accidental administrators(Dev) Over privileged services(System) Extra un-used services(Writer) Extra un-used protocols (SQL Auth)

Page 11: Hacking  SQL Server The best defense is a good offence

Patches Reversing patches is common practice

o Midi file buffer overflow exploited in wild 16 days after the patch Common msf exploits used MSYY- naming convention CVE – common vulnerabilities and exposures Know unsupported dates

Page 12: Hacking  SQL Server The best defense is a good offence

Layers Layers that still work

o Firewallso Strong Passwordso Antiviruso Patcheso Group Policyo Log Monitoringo Least privilegeo Audits and Testing

DRo Did someone say zombies?

Page 13: Hacking  SQL Server The best defense is a good offence

Roadblock Don’t be a disabler for business.

Page 14: Hacking  SQL Server The best defense is a good offence

Openwall & pastebin

Page 15: Hacking  SQL Server The best defense is a good offence

PaSsW0rD

Page 16: Hacking  SQL Server The best defense is a good offence

PaSsW0rD

Page 17: Hacking  SQL Server The best defense is a good offence

PaSsW0rD

Page 18: Hacking  SQL Server The best defense is a good offence

PaSsW0rD

Page 19: Hacking  SQL Server The best defense is a good offence

Back to DemoPost Carnage Analysis

Page 20: Hacking  SQL Server The best defense is a good offence

Q&A Other hacks?

o ‘ OR 1=1; -- Create table, insert web.configo Browser based attackso The next MS08_067

Review whiteboarding

Page 21: Hacking  SQL Server The best defense is a good offence

Review