Microsoft Ftp Service Exploit



  1. Microsoft late Tuesday confirmed the publication of exploit code for a serious code execution vulnerability in the FTP Service in Microsoft Internet Information Services (IIS) 5.0, 5.1, and 6.0.
  2. ‘An exploit code for Microsoft’s FTP Server vulnerability has been released. This exploit code can be used to test your system against the mentioned attack.’ Credit: ‘The information has been provided by Critical Watch Bugtraqqer.’.
  3. SMB Server Tranfer files to the target machine is particularly useful when we have already had a reverse shell on Windows. Windows does not have convenient commands to download files such as wget in Linux.

Victim O.S: Windows XP SP 3. Attacker O.S: Backtrack 5 R1. Vulnerability Application: Golden FTP Server 4.7.0. For you who have a web hosting maybe you will know or maybe you will rare to use FTP service for your file transfer between your computer and your web server. When you can use FTP client like Filezilla, WSFTP, etc it's because on the other side there's an FTP server.

greatworks.netlify.com › Microsoft Ftp Service Exploit ▄

Severity: High 8 February, 2011 Summary: This vulnerability affects: The IIS FTP service running on Windows Vista, 2008, 7, and 2008 R2 How an attacker exploits it: By sending a specially crafted FTP command Impact: In the worst case, an attacker gains complete control of your IIS server What to do: Deploy the appropriate IIS [].

The best posible result is TERE BINA TERE BINA DIL NAHI LAGDA BY RAHAT FATHE ALI KHAN that has been uploaded by AZ5JUTT786 and Tere Bina Song| Tezz| Ajay Devgan & Kangna Ranaut| Rahat Fateh Ali Khan probably the last item we have been found. You can download best quality Tere Bina Dil Nahi Lagda mp3 incuding 320kbps. Tere Bina Song| Tezz| Ajay Devgan & Kangna Ranaut| Rahat Fateh Ali Khan - mp3 by VENUS MOVIES Bitrate 128kbps|| Frequency 44100 Hz You are searching for Tere Bina Dil Nahi Lagda mp3 songs download. We have found total 14 songs. Soniye dil nahi lagda tere bina female mp3 download. Tere Bina Dil Nahi Lagda free mp3 download, Tere Bina Dil Nahi Lagda free mp3 download 320kbps, Tere Bina Dil Nahi Lagda free mp3 download mp3lio, Tere Bina Dil Nahi Lagda song download mp3, Tere Bina Dil Nahi Lagda mp3 song free download, Tere Bina Dil Nahi Lagda audio download, Tere Bina Dil Nahi Lagda mp3 download skull,Tere Bina Dil Nahi Lagda free mp3 download lyrics.

FTP is a service that is commonly used in Web Servers from Webmasters for accessing the files remotely.So it is almost impossible not to find this service in one of our clients systems during an engagement.

For that reason we will try to cover in this article a scenario of a possible attack against the FTP Server.

The first thing that we need to do is of course to identify which systems are running the FTP service (for the needs of this tutorial I have put only one system). We can do a simple scan with Nmap in order to find the open ports.

We can see that the FTP port is open. Now the next logical step that we have to do is to identify which version the FTP application is running by using a method which called FTP banner grabbing.

Download

Of course we can use the Nmap for the discovery of the remote operating system and the service fingerprinting but in this tutorial we will not take advantage of that.

Banner Grabbing is a technique that someone can use in order to extract information from application banners.For example if the remote host is a web server,we can try to connect through telnet.The banner results will give us an indication about the operating system and the type of the web server (Apache or IIS).

Command: telnet target_IP 80

In order to do a banner grabbing in the FTP service we will just try to connect through our console to the FTP server.

FTP Banner Grabbing

Free Ftp Service

From the above image we can see that the version is 1.3.1 and the operating system is Debian.There are many things that we can do from here.First we can try to find if there is any public exploit for the ProFTPD 1.3.1 version.If there is then we can launch it against the FTP Service.

If there is not any public exploit for the specific version then we can try to find a valid username and password by using a dictionary attack.We can use any tool like THC Hydra for this job but in this article we will see how it could be achieved through metasploit.

Metasploit Framework has a specific module for attacking FTP servers.So we will search on the metasploit for the module ftp_login.

Now that we have found the FTP scanner it is time to configure it.Of course we will need some good wordlists for the usernames and the passwords.If we don’t have then there is no problem because metasploit has a folder with various wordlists.Here we will use the wordlists that contains Unix usernames and passwords.

We are setting the scanner according to the following image and we type run in order to the scanner to start:

FTP Scanner Settings

The scanner has discovered 3 valid login credentials as you can see from the next 3 images.

Discovery of the service username/password

So now we have three valid logins to choose in order to connect to the FTP server.Lets try the last one which is the user as username and user as password.

Login with a valid account on the FTP server

We can see that we have successfully managed to login to the FTP server.Now we can execute the command ls -lat to the server in order to display the list with the current directories and subdirectories and the permissions that we have on the directories.

There are two directories that are important here.The SSH because it may contain private SSH keys and the bash_history because it keeps a history of all the commands that the user has run.For example you can find information about user ID,passwords,confidential file names,locations,server names and shared folders.

We will download the bash_history file to our computer with the command get as you see it in the image below:

Download the file to our computer

Except of the console for the connection to the FTP server we can use also our browser.We will try to login with the same credentials user/user

After some searching in the directories we have found a directory which contained the following:

Directory of usernames

We can see that there are 4 folders.A folder named user, a folder named service and a folder named msfadmin.

Microsoft Ftp Service

Anonymous Read/write (220 Microsoft Ftp Service) Exploit

This is an indication that another account exists under the username msfadmin which probably is an administrator’s account and has more privileges.The reason that we assumed that is because the folders names are the same with the usernames that we have discovered previously.

The previous accounts had passwords same with the usernames.So we will try to login with the following credentials:

Username: msfadmin

Password: msfadmin

The image above is showing that our try to login with the username/password msfadmin was successful.If the password was different then we could have tried another dictionary attack against the FTP server in order to find and the password.

So we have managed to login to the FTP server with an administrator’s account.

Conclusions

There are some conclusions that we can make regarding this scenario.First of all the banner grabbing allow us to discover valuable information about the FTP server and the target operating system.This means that if the administrator had changed the FTP banner then it would be much harder for us to disclose these information.

In addition we have noticed the weak credentials of the 3 accounts that we discovered.Also the administrator’s account password is the same with the username.This account policy is unacceptable in most of the companies and probably you will not meet something similar.However even large organizations are suffering from weak passwords so eventually it can happen.It is important for that reason to have a good password policy.

On the other hand if a malicious user was trying brute force or dictionary attacks (like this scenario) against the FTP server then it would probably flooded the log files.A security solution that would block the IP address after 3 unsuccessful logins would be the most effective.

Microsoft Ftp Service 5.0 Exploit

Advertisements
Posted by Vishnu Valentino in Hacking Tutorial | 0 comments

Type : Tutorial

Level : Medium

Victim O.S : Windows XPSP 3

Attacker O.S : Backtrack 5 R1

Vulnerability Application : Golden FTP Server 4.7.0

For you who have a web hosting maybe you will know or maybe you will rare to use FTPservice for your file transfer between your computer and your web server. When you can use FTP client like Filezilla, WSFTP, etc it's because on the other side there's an FTP server that act to serve/handle any incoming request to port 21(FTP). Golden FTP was one example from so many FTP server in the net.

But today we will not learn about how to use this kind of FTP server, but about vulnerability that found in Golden FTP server application that allow attacker to inject malicious script that caused attacker can get into the system.

Below was the explanation from metasploit.com about the module that can exploiting Golden FTP server 4.7.0 :

Microsoft Ftp Service Exploit Metasploit

This module exploits a vulnerability in the Golden FTP service, using the PASS command to cause a buffer overflow. Please note that in order trigger the vulnerable code, the victim machine must have the 'Show new connections' setting enabled. By default, this option is unchecked.

Let's start the step by step how to perform this . . .

Requirements :

1. Metasploit Framework

2. Golden FTP Server 4.7.0

Step By Step :

1. Use the exploit module that already included in metasploit framework(if you cannot found this module, run msfupdate command).

2. To view the available switch for this exploit module, just run show options command. Here in this picture below I just set the required switch to perform this attack to the FTP server.

informations :

3. After everything set up correctly, now you need to choose your target. Run show targets command to view the available targets. In this tutorial my victim was using Windows XP Professional SP3, that's why I'm running set target 0 command.

4. Simple isn't it? 🙂 now run your exploit command to perform the attack.

PWNED!

We're already on victim machine.

If you want to do another thing inside victim machine, please read this tutorial that very useful for your knowledge.

Countermeasures :

1. Always update your software when there's an update.

Hope it's useful 🙂

Share this article if you found it was useful:

Blogger at hacking-tutorial.com. Love PHP, offensive security and web. Contact him at me[-at-]vishnuvalentino.com

See all posts by Vishnu Valentino || Visit Website : http://www.vishnuvalentino.com