bug hunting 101 - rootcon 11/trainings...• jay turla a.k.a the jetman • application security...

29
by Jay Turla STARTING YOUR BUG HUNTING CAREER NOW

Upload: others

Post on 04-Jul-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

by Jay Turla

STARTING YOUR BUG HUNTING CAREER NOW

Page 2: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

AGENDA• Whoami

• What is a Bug Bounty or Bug Hunting?

• Some Companies with Bug Bounty Programs

• Bugcrowd Introduction and VRT

• Bug Hunter Methodology

• Sample Issues

• DEMO

2/25/172

Page 3: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

WHOAMI• Jay Turla a.k.a The Jetman

• Application Security Engineer @Bugcrowd

• Metasploit Contributor: Host Header Injection Detection, BisonWare BisonFTP Server Buffer Overflow, Zemra Botnet CnC Web Panel Remote Code Execution, etc.

• Twitter : @shipcod3

• ROOTCON Goon

• Former Senior Security Consultant at HP Fortify on Demand

2/24/173

Page 4: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

BOUNTY HUNTING?

2/24/174

Page 5: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

WHAT IS A BUG BOUNTY? (THINK OF IT AS A COMPETITION)

2/24/175

Independent security researchers from all over the world are

recruited

Vulnerabilitiesare found and

reported

Rewards are exchanged for reporting

vulnerabilities in company applications

Page 6: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

SOME COMPANIES THAT HAVE BUG BOUNTY PROGRAMS <3

2/24/176

Page 7: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

Crowdsourced security platforms like Bugcrowd connects organizations to a curated crowd of tens of thousands of researchers from around the world to identify vulnerabilities in their applications, devices, and code—before the bad guys do. Hack now at https://bugcrowd.com/programs

2/24/177

Page 8: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

IS THIS A NEW SCAM? WAIT WHAT?

2/24/178

Page 9: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

SHOW ME THE MONEY

2/24/179

Page 10: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

WHO IS THIS GUY?

2/24/1710

Page 11: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

YOU CAN BE A HERO

2/24/1711

Page 12: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

2/25/1712

Page 13: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

BUG TYPE AND PRIORITY

13

13 HRSIn 2016, a critical issue was reported

every...

Page 14: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

EASY SIGNUP

2/24/1714

Page 15: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

15

BUG HUNTER METHODOLOGIES

2/25/17

Page 16: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

METHODOLOGY FOR BUG HUNTING JASON HADDIX

• https://github.com/jhaddix/tbhm

• Video & Slides

• https://bugcrowd.com/resources/how-to-shot-web-by-jason-haddix

2/25/1716

Page 17: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

METHODOLOGY FOR BUG HUNTING ON NEW BOUNTIES BRETT BUERHAUS

• Review the scope

• Perform reconnaissance to find valid targets

• Scan against discovered targets to gather additional information

• Review all of the services and applications

• Fuzz for errors and to expose vulnerabilities

• Attack vulnerabilities to build proof-of-concepts

2/25/1717

Page 18: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

OTHER GOOD RESOURCES

• Awesome Hacking: https://github.com/Hack-with-Github/Awesome-Hacking

• The Web Application Hacker’s Handbook

• OWASP: https://www.owasp.org/index.php/Main_Page

• HPE Security Fortify Taxonomy: https://vulncat.hpefod.com/en

• DEF CON Archives: https://defcon.org/html/links/dc-archives.html

• ROOTCON Archives: https://www.rootcon.org/xml/archives/events

• SecLists Project: https://github.com/danielmiessler/SecLists

18

Page 19: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

19

PRACTICING YOUR SKILLS

2/25/17

Page 20: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

VIRTUAL MACHINES AND VULNERABLE WEB APPS- EASY TO SETUP

• vulnhub.com - materials (mostly VMs you can play with) that allows anyone to gain practical 'hands-on' experience in digital security, computer software & network administration.

• Damn Vulnerable Web Application - http://www.dvwa.co.uk/

• OWASP Mutillidae - https://www.owasp.org/index.php/OWASP_Mutillidae_2_Project

• bWAPP - http://www.itsecgames.com/

• OWASP Broken Web Applications Project - https://www.owasp.org/index.php/OWASP_Broken_Web_Applications_Project

20

Page 21: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

ONLINE PLAYGROUND -NO NEED TO SET IT UP

• http://flaws.cloud/ - series of levels you'll learn about common mistakes and gotchas when using Amazon Web Services (AWS)

• n00bs CTF Labs - http://ctf.infosecinstitute.com/index.php

• Google XSS Challenge- https://xss-game.appspot.com/

• Zero Web App - http://zero.webappsecurity.com/

• CTF365 - https://ctf365.com/

• Demo Testfire - http://demo.testfire.net/

21

Page 22: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

22

SOME ISSUES YOU CAN REPORT NOW

things to ponder about security issues that are easy to spot

2/25/17

Page 23: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

SESSION NOT INVALIDATED AFTER LOGOUT, PASSWORD RESET, PASSWORD CHANGE

2/25/1723

Page 24: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

TELNET ENABLED (CREDENTIALS REQUIRED)

2/25/1724

Page 25: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

MISCONFIGURED S3 BUCKETS

2/25/1725

Page 26: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

XSS (CROSS-SITE SCRIPTING)

2/25/1726

Page 27: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

SQL INJECTION

2/25/1727

Page 28: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

LET’S HAVE SOME DEMO

2/25/1728

Page 29: bug hunting 101 - ROOTCON 11/Trainings...• Jay Turla a.k.a The Jetman • Application Security Engineer @Bugcrowd • Metasploit Contributor: Host Header Injection Detection, BisonWare

QUESTIONS?

2/25/1729