+ All Categories
Home > Documents > DirBuster & Beyond - OWASP

DirBuster & Beyond - OWASP

Date post: 21-Jun-2022
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
24
Copyright 2007 © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP Foundation OWASP http://www.owasp.org DirBuster & Beyond James Fisher DirBuster Project Lead [email protected] DirBuster Project
Transcript
Page 1: DirBuster & Beyond - OWASP

Copyright 2007 © The OWASP FoundationPermission is granted to copy, distribute and/or modify this document under the terms of the OWASP License.

The OWASP Foundation

OWASP

http://www.owasp.org

DirBuster & Beyond

James FisherDirBuster Project [email protected]

DirBuster Project

Page 2: DirBuster & Beyond - OWASP

2OWASP

Who is this James Fisher?

By Day – Senior Constant at Portcullis

By Night – DirBuster Project Lead

Page 3: DirBuster & Beyond - OWASP

3OWASP

Overview

Page 4: DirBuster & Beyond - OWASP

4OWASP

What is DirBuster

A multi thread Java application

Designed to brute force files and directories on web/application servers

Page 5: DirBuster & Beyond - OWASP

5OWASP

Can’t you just do that with simple code?open (LIST, "$list") or die "Unable to open list;foreach $name (<LIST>) { $connection = IO::Socket::INET->new (Proto => "tcp", PeerAddr => "$host", PeerPort => "$port", ) or die "Can't CONNECT to $host on the Port specified.\n";

$connection -> autoflush; chomp $name; print $connection "GET /$name/ HTTP/1.1\nHost: $host\n\n\n"; $results = <$connection>; if ( $results =~ /($num)/g ) { #do nothing } else { print "$results\n\n"; }}

Page 6: DirBuster & Beyond - OWASP

6OWASP

Can’t you just do that with simple code?

Yes the code will work

But it won't be very good at the job

Page 7: DirBuster & Beyond - OWASP

7OWASP

Why is it no good?

Consider the following cases:HTTPSDirectories that return 403 for everything, even if

other dir’s return 404,sSpeedServers that return 200’s for 404’sIf you have to use a proxyRecursive scanning into dir’s foundError handlingBasic/Digest/NTLM auth

Page 8: DirBuster & Beyond - OWASP

8OWASP

So how has DirBuster solved these issues?

Directories that return 403 for everythingChecks EVERY dir and file type within EVERY dir to

see how they handle failed attemptsEg http://127.0.0.1/thereIsNoWayThat-You-CanBeThere/

Behaviour changes depends on the result of this test

SpeedUtilises the Apache Httpclient APIUsing “keep alive's”Auto switching between HEAD and GET requestsMulti threaded producer consumer model

Page 9: DirBuster & Beyond - OWASP

9OWASP

So how has DirBuster solved these issues?

Servers that return 200’s for 404’sType 1: Static

The 200 response does not change (quite rare!!!!) Easy to deal with

Type 2: Variable The response is different each time

– Dates– Random numbers– Displaying what was requested

Harder to deal with but not impossible

Page 10: DirBuster & Beyond - OWASP

10OWASP

Type 2: Variable

Two approaches to deal with thisContent analysis mode

Performs a string comparison against the fail case BUT only after the response has been normalised to remove

things like dates, timestamps etc....

Regex over ride Allows the user to specify a regex which if matched will

count as a fail Only triggers when DirBuster works out that the

normalisation has failed to produce a consistent fail case

Page 11: DirBuster & Beyond - OWASP

11OWASP

Only as good as your lists

You can have the best scanning platform known to man

BUT if the list it uses only has 10 items......

It probably won't find much!!

Page 12: DirBuster & Beyond - OWASP

12OWASP

DirBuster lists

Based on the concept that developers speak “developerengrilish”

It’s English Jim, but not as we know it!

Page 13: DirBuster & Beyond - OWASP

13OWASP

DirBuster Lists

Produced by crawling the internetCustom spider written for this purpose

Ordered by the frequency foundBased on the number of different hosts an item was

found on

Extensive testing to remove spam and problem dirs that sneaked their way in

Page 14: DirBuster & Beyond - OWASP

14OWASP

pr0n

Yep the internet is full of itThus the spider found itSo it’s in the lists, as it’s actually used on the

internetRemember…

Especially your business reputation!

Page 15: DirBuster & Beyond - OWASP

15OWASP

Demo time

Page 16: DirBuster & Beyond - OWASP

16OWASP

What next for DirBuster

New lists Crawling even more sites than last time. I

would like to do 10+ million pages.Collect other information that will be useful for

testing All get and post variable names All get and post pre populated values All file extensions used All subdomians names used All cookie names Cookie values would be stupid!

The information can be used for other forms of testing especially fuzzing

Page 17: DirBuster & Beyond - OWASP

17OWASP

Introducing FuzzBuster

Yep you guessed it’s a fuzzer

Not another fuzzer I hear you say

Born out the fact I could find an open source http fuzzer to work how I wanted it to work.

Page 18: DirBuster & Beyond - OWASP

18OWASP

Concept

To cover 90% of fuzzing cases out of the box

But still be flexible to deal with the other 10%

Nice GUI, that is intuitive to use

Plus some other features I haven't seen in other http fuzzers

Page 19: DirBuster & Beyond - OWASP

19OWASP

Keeping it flexible

Independent Fuzz generators

Uses the full power of Java

No need to create our own or use a scripting language

Dynamically Compiles and loads the Fuzz Generators

Only limited to what you cab do with Java

Page 20: DirBuster & Beyond - OWASP

20OWASP

Keeping it simple

Based on the fuzz generator, FuzzBuster will dynamically build the GUI for it

A bit like a Metaspolit module

So Fuzz generators can be written to take user input.

Page 21: DirBuster & Beyond - OWASP

21OWASP

New Features

HTTP is now a synchronous protocol

CSRF protection & view state for example!

FuzzBuster can fuzz over multiple requests

Regex rules allow you to extract data from one response and use it in the next request

Page 22: DirBuster & Beyond - OWASP

22OWASP

Demo Time

Page 23: DirBuster & Beyond - OWASP

23OWASP

Summary

I hope will find DirBuster useful

FuzzBuster might be released in the next couple of months

I have a major bug to solve first

If you have any suggestions for either tool, please let me know!

Page 24: DirBuster & Beyond - OWASP

24OWASP

Questions


Recommended