WebSurgery v1.0

WebSurgery is a suite of tools for security testing of web applications. It was designed for security auditors to help them with web application planning and exploitation.

It currently contains a spectrum of efficient, fast and stable tools such as Web Crawler with the embedded File/ Dir Brute forcer, Fuzzer (for advanced exploitation of known and unusual vulnerabilities such as SQL Injections, Cross site scripting (XSS)), Brute force (for login forms and identification of firewall-filtered rules, DOS Attacks) and WEB Proxy (to analyze, intercept and manipulate the traffic between your browser and the target web application).

 

Web Crawler

Web Crawler is designed to be fast, accurate, stable and completely parameterized using advanced techniques to extract links from Javascript and HTML Tags. It works with parameterized timing settings (Timeout, Threading, Max Data Size, Retries) and a number of rule parameters to prevent infinitive loops and pointless scanning (Case Sensitive, Dir Depth, Process Above/Below, Submit Forms, Fetch Indexes/Sitemaps, Max Requests per File/Script Parameters).

It is also possible to apply custom headers (user agent, cookies etc) and Include/Exclude Filters. For example, by default the crawler will scan only the initial web service (url at the specific port), however you could change the initial filter “^($protocol)://($hostport)/” to “^(http|https)://[^/]*\.test.com” to specify the whole domain site for a specific domain using regular expressions (i.e .net) (e.g. for http://test.com, https://test.com, http://www.test.com, https://something.test.com:9443 etc).

Web Crawler also includes an embedded File/Dir Brute Forcer which helps to directly brute force for files/dirs in the directories found from crawling.

Web Bruteforcer

Web Bruteforcer is a brute forcer for files and directories within the web application which helps to identify the hidden structure. As Web Crawler it us multi-threaded and completely parameterized for timing settings (Timeout, Threading, Max Data Size, Retries) and rules (Headers, Base Dir, Brute force Dirs/Files, Recursive, File’s Extension, Send GET/HEAD, Follow Redirects, Process Cookies and List generator configuration).

By default, it will brute force from root / base dir recursively for both files and directories. It sends both HEAD and GET requests when it needs it (HEAD to identify if the file/dir exists and then GET to retrieve the full response).

Web Fuzzer

Web Fuzzer is a highly advanced tool to create a number of requests based on one initial request. Fuzzer has no limits and can be used to exploit known vulnerabilities such as (blind) SQL Inections and more uncommon ways such identifying improper input handling and firewall/filtering rules.

Web Editor

A Web Editor to send individual requests. It also contains a HEX Editor for more advanced requests.

Web Proxy

Web Proxy is a proxy server running locally and will allow you to analyze, intercept and manipulate HTTP/HTTPS requests coming from your browser or other application which support proxies.

 

Download

Share
Photo

root

March 17th

Tools

WebSurgery v0.6a is out

WebSurgery v0.6a is now ready.

v0.6a

  1. Critical Bug for SSL certificates fixed [Private password for pfx >32 characters not supported on Windows 2003 and below]

v0.6
Main changes:-

  1. WEB Proxy module added
  2. External Proxy support added
  3. Gzip support added

View more details here

Share
Photo

root

September 8th

News

srgn-InfoGather

One of my old tools which helps for initials steps of Information Gathering. Basic, it works with dig, whois and nmap scan results. Unfortunately, it’s not really user-friendly and not documented. I’ve already coded the basic structure of new information gathering tool, however still needs a looot of work.

Features

For a domain:
- Find Domain’s Name servers (NS Records)
- Find Domain’s Mail servers (MX Records)
- Find sub-domains using Google Search
- Find sub-domains using Brute force
- Find possible Clusters / Balancers (different IP, same Host)
- Find related domains
- Whois Domain details

For Name servers:
- Check Name Servers for Zone-Tranfers
- Check Name Servers for Version Bind (Banner)

For Mail servers:
- Check Mail Servers for User Enumeration (VRFY / EXPN)
- Check Mail Servers for Open Relay

For IP Addresses:
- Find Host Names
- Find Virtual Hosts using Bing API 2.0
- Whois IP details (Gets ISP / LIR details as well)
- Find more IP Ranges based on Net Name
- Find more IP Ranges based on Maintainer (mnt-by)

For Ports (import Nmap xml file):
- Find Port banner
- Find Web (HTTP/HTTPS) Ports
- Find Same Web Sites running on different IP / Port
- Check Web Ports for OPTIONS, Server Banner, Internal IPs exposure

Download

Share
Photo

root

July 28th

Tools

Securing & Hardening Linux Web Server (Part II – Practice)

This paper will try to cover the most important steps to properly securing and hardening your Linux web server.

  1. Part I   - Theory
  2. Part II – Practice

So, let’s assume that we bought a new dedicated server and we just installed from the vendor’s control panel a fresh Linux distribution with the following details:

Server (Dedicated)
Operating System (Ubuntu 11.04)
Web Server (Apache 2.2.x)
Database Server (MySQL 5.1.x)
Name Server (Bind 9.7.x)
SSH Server (OpenSSH 5.8.x)
Firewall (IPTables 1.4.x)

The following security solutions will most probably work with the different services’ versions and different Linux distributions. You will just need to find some more details for your system such as different paths for configuration files etc.

Operating System [Ubuntu]

Software and Services

- Review installed packages and remove unnecessary

1. dpkg -l			// list of installed packages or dpkg --get-selections
2. dpkg -s			// to get information abou the package
3. apt-get remove	// uninstall unnecessary packages

- Review running services and remove/disable unnecessary

1. service --status-all			// list services
2. service <name> [start|stop|status]	// start/stop temporary
3. update-rc.d <name> defaults		// enable permanently
4. update-rc.d -f <name> remove		// disable permanently

Avoid using unencrypted services such as FTP, TELNET, HTTP, etc… use instead SFTP/FTPS/SCP/RSYNC, SSH, HTTPS

Tools:  sysv-rc-conf, chkconfig, rcconf


Read more »

Share
Photo

root

July 7th

Papers

Securing & Hardening Linux Web Server (Part I – Theory)

This paper will try to cover the most important steps to properly securing and hardening your Linux web server.

  1. Part I – Theory
  2. Part II – Practice

In the first part, we will discuss what do we need to do theoretically to secure our Linux web server without explaining how we can exactly do it in practice. In this way, we can avoid the confusion of different configuration for different systems, Linux distributions and services.

- What do we need to run a web server?

Server (Local, Dedicated, VPS etc)
Operating System (Linux distribution)
Web Server (eg. Apache)
Database Server (eg. MySQL)
Name Server (eg. Bind)
SSH Server (eg. OpenSSH)
Firewall (eg. IPTables)

That’s a very basic configuration for a Linux web server. However, in your case maybe it’s slightly different. For example, you will not need to run SSH if you have local access or maybe you need to run more services such as Mail server.

- What kind of attacks do we need to prevent for a server like this one?

Mass Packets
     Denial of service (DOS)
     Brute force (SSH Login, HTTP Login Forms, DNS Lookups, …)
     Web Scanning (Crawling, File/Dir Brute force, …)

Known Vulnerabilities Exploitation (running services, web applications, …)
Information Exposure (Versions, Error messages etc)
Web Attacks (SQL Injections, Cross-site Scripting, File Inclusions, …)

Now, that we know what kind of system we need to run our web server and what kind of attacks we need to prevent, we need to know…

- What do we need to do to prevent the above kind of attacks?

Operating System

Patching, Updating, Monitoring, Logging, Backup
Remove unnecessary Users, Packages, Services
Use strong password policy
Review file permissions, ownership, SUID/SGID files
Install security tools (Rootkit Hunter, Chkrootkit, Tripwire, …)

Web Server

Change default version banners
Disable verbose error messages
Disable directory listing
Disable unnecessary modules, functions
Install security modules (web application firewall for DOS and Web attacks)
Secure coding for custom web applications

Database Server

Remove unnecessary Users
Change default root username
Restrict access from the outside world

Name Server

Change default version banners
Disable recursion, zone transfers and Port 53/tcp

SSH Server

Change default version banners, Display welcome banner
Change default listen port
Use only protocol 2, public key authentication
Disable remote root access
Restrict access to specific IP Address(es) if that possible

Firewall

Default Policy deny all
Identify Spoofing, Invalid IP Addresses
Identify Invalid Packets
Identify Port scanning
Identify Mass Packets (DOS Attacks, SYN Flood, Web Scanning, Brute force for SSH Logins, HTTP Login Forms, DNS Lookups)
Allow necessary services
Enable Logging & Ban

 
Related

Securing & Hardening Linux Web Server (Part II – Practice)

Share
Photo

root

June 27th

Papers

Blog Ready

Welcome to my security blog! I’ve already uploaded some of my stuff but keep tuned… more to come.

SuRGeoNix

Share
Photo

root

June 24th

News

srgn-file2text

It converts a binary file to text and then is possible to recreate the binary file from text on server which has no internet access.

Supports (srgn-file2text-v2.1)

    • Windows Debugger (debug.exe)
    • VBScript
    • JScript

Download source
Download .exe

Related

Creating Binary Files on a Firewalled Server
Download Files using default windows commands

Share
Photo

root

June 23rd

Tools

srgn-ciscoconf

It downloads Cisco configuration file through SNMP protocol using a TFTP server. IP Spoof is possible because SNMP using a parameter for the TFTP’s IP address. Bruteforcer for [spoofed_ips] [community_strings] [cisco_targets] also attached.

Download srgn-ciscoconf-v1.0
Download Bruteforcer

Related

Security Focus – Download
SourceForge – Download
Cisco SNMP configuration attack with a GRE tunnel

Share
Photo

root

June 23rd

Tools

Creating Binary Files on a Firewalled Server

This article introduces techniques that an attacker, who has already access to execute commands on a server, could use to create binary files on server which has no internet access (firewalled) or web filtering (antivirus).

Download

 

Related

Download Files using default windows commands

Share
Photo

root

June 23rd

Papers

How Internal Network becomes External

Contents

1. Information gathering for the external network
2. Seeking for vulnerabilities & misconfigurations
3. Using flaws to get a shell
4. Information gathering for the internal network
5. Escalating privileges for the internal network
6. Converting internal network to external

 

Download

 

Share
Photo

root

June 23rd

Papers
line

© 2017 SuRGeoNix | Security Blog