OWASP-Modern Information Gathering
OWASP-Modern Information Gathering
gathering
38 years
Identify entrypoint
Gain access
Secure access
Do stuff
Clear up the mess
Come back another time
(simplified procedure)
‘Classic’ Domain Scanning
Steps involved:
Get network information with ping and traceroute
Get DNS information with WHOIS and LOOKUP
Do DNS zone transfer for subdomains
Download website for extra info
Scan servers
Problems:
DNS zone transfers often not authorized
Active connection with target => detectable
Modern Information Gathering
Interesting information:
Domains and subdomains
IP adresses
Applications and technologies
Hotspots (known vulnerabilities)
Usernames and passwords
Sensitive information
Passive
As little contact as possible with target
No direct scanning, no intrusion
No logging and no alarm triggering !
Sources of information
Shodan
IP adresses
Server banner
X-Powered-by banner
Cookies
Search filters
City, Country, Geo
Hostname, ip address / net block
Os, port
date (before / after)
ssl cert version, bits, issuer
ssl cipher support, bit support , protocol
ServerSniff.net
Server Sniff
NS reports
Domain reports
Subdomains
Various (trace)routes
Various ping types
Shows robots.txt
Anonymous !
Domain Scanning: Server Sniff
Robtex.com
Domain Scanning: Robtex
intext:
The terms must appear in the text of the page.
intitle:
The terms must appear in the title of the page.
inurl:
The terms must appear in the URL of the page.
Google Hacking Database
www.johnny.ihackstuff.com
(edit: http://johnny.ihackstuff.com/ghdb.php)
No longer updated
inurl:
intitle:
site:
Example
SearchDiggity
Stach & Liu
SEO Tools
Domain Scanning ‘on-the-fly’
Limit access
• Allow search engines only to see what they need to see.
• Make sure unauthorized users are not able to look into or even see files
they do not need to see.
• Force possible intruders to use methods that can be scanned and
monitored.
Awareness
• Be aware of all possible sources of information. Create awareness
among employees. Assume all information will possibly abused
Clean documents
• Remove al metadata from documents before publishing.
Audit frequently
• Keep your knowledge up-to-date and scan regularly for
information that can be found about your systems or hire
professionals do to it for you.
Interesting books on the subject