Trustwave's 2024 Retail Report Series Highlights Alarming E-Commerce Threats and Growing Fraud Against Retailers. Learn More

Trustwave's 2024 Retail Report Series Highlights Alarming E-Commerce Threats and Growing Fraud Against Retailers. Learn More

Services
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats

An external penetration test isn't just about the network addresses to pwn, but sometimes about the web presence that is offered to the world at large. And web presence equals web applications. As a new addition to the SpiderLabs team, I've been working on perfecting my web profiling and penetration testing skills. I've come across two tools that when used in conjunction, can get a great view of both basic vulnerabilities as well as profiling for a web site. No tool is 100% accurate, and sometimes due to the size of the target, it can't handle the bandwidth. Layering tools allows you to cover more ground. And since a vulnerability scan typically works by identifying a system, then executing specific checks against it to determine if a vulnerability exists, a pentester then needs to manually attempt to exploit those potential vulnerabilities.

ZAP, which is an OWASP Project whose full name is Zed Attack Proxy and not a shortened name of the 1980 Scott Baio movie, is a free penetration tool for finding web application vulnerabilities. It is easily downloaded from the OWASP website HERE, with great in-depth directions and information which can be found HERE on the use and installation of ZAP.

10765_9861607d-342f-4418-a0e4-4fcc4067bc6b[Figure 1. A newly opened session showing the basic ZAP screen.]

Essentially, ZAP is an intercepting proxy used to scan a website both passively and actively. Once a website has been explored, and the pages have been registered within ZAP, the Spider option can be used to find any links that might have been missed. Next, an active scan can be run to find any potential vulnerabilities, and more than likely this will be when the alert flags start to pop up.

12567_ef18450d-66df-4780-b038-1314bf671afe [Figure 2. Alerts posted from a large cluster of webservers housing one main site.]

This list of alerts documents possible web application vulnerabilities. The fun of breaking things now comes into play, as with list in hand of URLs by the dozen, it is now time to manually test to see if these are real exploitable vulnerabilities or just some false positives.

Sadly, many web proxies aren't great at targeting a lot of webservers at once. As you can see in Figure 2., there are thousands of webpages with potential vulnerabilities. Worse still, since the website was so vast active scans were not completing. What's a pentester to do? She finds another tool to layer with this one to fill in the blanks.

FOCA is a fingerprinting and information gathering tool also used for pentesting. This tool is also free. A download can be obtained by submitting your email on the bottom of the FOCA webpage. A direct download link will then be sent to your email address.

9493_5c520f6a-513a-411a-9c33-93ef0320165f[Figure 3. FOCA project main screen.]

FOCA searches the World Wide Web using Google or Bing Web or API settings, DNS records, and Shodan & Robtex. It does a fantastic job of ferreting out all associated clients, servers, and domains. Yet interestingly when used on the same website as ZAP was above, it did not list out the same vulnerabilities. However, the metadata it was able to grab was content rich. Metadata is typically descriptive information about the file including the authors name and date, but can include additional interesting information such as internal share locations, software versions, and usernames. FOCA downloads all publicly-accessible, search engine indexed documents (Word files, PDFs, etc) hosted in the environment; and organizes the extracted metadata as shown in the Evidence section.

7826_0a240587-f073-4d77-8365-9111d683465b
[Figure 4. Metadata list of files and juicy information extracted and analyzed by FOCA.

9057_486762ae-9e85-4e8b-b0c7-fb295cd9ed4b
[Figure 5. A breakdown of software extracted from metadata via FOCA.]

So the lesson to be learned here is that by layering tools you get a bigger picture of the environment you are testing. The metadata retrieved from FOCA could be used to leverage additional system compromises both externally and internally. With tools combined, you could pwn the world.

ABOUT TRUSTWAVE

Trustwave is a globally recognized cybersecurity leader that reduces cyber risk and fortifies organizations against disruptive and damaging cyber threats. Our comprehensive offensive and defensive cybersecurity portfolio detects what others cannot, responds with greater speed and effectiveness, optimizes client investment, and improves security resilience. Learn more about us.

Latest Intelligence

Discover how our specialists can tailor a security program to fit the needs of
your organization.

Request a Demo