Question:
How do I bypass ftp authentication?
fribbit316
2009-07-22 14:41:25 UTC
I would prefer not to use a program (if there is no other way that's fine). I want to get around ftp login. I have an XP OS Version 5.1.2600.
Four answers:
anonymous
2009-07-24 13:46:05 UTC
Hello,



There really is no way to bypass ftp authentication. This may be illegal in some locations. There is a ProFTP exploit that any sys admin should be aware of though:



Just found out a problem with proftpd's sql authentication. The problem is easily reproducible if you login with username like:



USER %') and 1=2 union select 1,1,uid,gid,homedir,shell from users; --



and a password of "1" (without quotes).



which leads to a successful login. Different account logins can be made successful using the limit clase (e.g appending "LIMIT 5,1" will make you login with as the 5th account in the users table).



As far as I can see in the mysql logs the query becomes:



SELECT userid, passwd, uid, gid, homedir, shell FROM users WHERE (userid='{UNKNOWN TAG}') and 1=2 union select 1,1,uid,gid,homedir,shell from users limit 1,1; -- ') LIMIT 1



I think the problem lies in the handling of the "%" character (probably that's some way to sanitize input to avoid format string things?).



Anyway, %' effectively makes the single quote unescaped and that eventually allows for an SQL injection during login.





Good Luck!

Sean Colicchio

Server Engineer

Host My Site

hostmysite.com
lysacor
2009-07-22 15:27:54 UTC
I would recommend against accessing an FTP server that you do not have the rights to access, or use, as it is likely an illegal act (I am not an attorney and the previously mentioned statement, should not be construed as legal advice, or an attempt to provide legal advice).



Unless the FTP server you are connecting allows anonymous FTP (which uses a username like anonymous, and the password can be anything). There is no way to bypass FTP authentication on a server short of exploiting weaknesses in the FTP server software, or hosting operating system.
moton
2016-09-15 16:21:14 UTC
Do you imply how to hook up with a secured community router with out a password? There are special systems that may do this however the time to smell the password relies on the force of the password. If it may be located within the dictionary then it would possibly not take an excessive amount of time. Otherwise, it might take commonly a life-time.
anonymous
2013-11-01 14:57:23 UTC
ftp login error need to be bypass


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...