Secure FTP access

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts Page 1 of 1
Contributors
User avatar
Smiley
VIP - Donator
VIP - Donator
Posts: 269
Joined: Sat Dec 19, 2009 3:39 pm

Secure FTP access
Smiley
Hi Guys

I Recently purchased a web domain and one year of web hosting, then i looked up how to upload and download files from an ftp server with vb.net to see what i could do with the web server and i realized that i could make a messenger application using a web server but then i ran into a problem if i where to make such an application and release it on the internet anyone could just reverse engineer the code and find out the ftp username and password to my server.
My Question is how could i secure my code? and are there any other security vulnerabilities i need to think about?

Thanks in advance,
Smiley cooll;
User avatar
visualtech
VIP - Donator
VIP - Donator
Posts: 265
Joined: Sat Nov 19, 2011 2:19 pm

Re: Secure FTP access
visualtech
You can try using some obfuscators. A good one is SmartAssembly (I have a licensed version). Otherwise, use some-sort of Public/Private Key cryptography to sign/verify the strings.

Now you have to see that every obfuscated assembly can be de-obfuscated. So the best option we have is: Public/Private key cryptography. So, if the hacker has the Public Key, he can't use it :)

Another thing can be: Signing with a .SNK file or Strong Name it This way if anyone decompiles the code: it will break.

Even after that: a good hacker can sniff the TCP/UDP requests sent out by your software. There is one thing you can do: Send the File as a Compressed gzip stream to a PHP page and tell the PHP page to upload that to the string.

This way: even if the person decompiles your assembly, he won't see the Username/Password for your FTP server. One vulnerability here can be that the "hacker" can get the URL and upload the files he wishes.
To counter this: Sign your gzipped stream with RSA/ECC and verify in the PHP script.

To make the wall harder, use some Padding and put the parts of the signature at some random places.

P.S.: Want more help or help in making this: PM Me :)
Image
User avatar
Smiley
VIP - Donator
VIP - Donator
Posts: 269
Joined: Sat Dec 19, 2009 3:39 pm

Re: Secure FTP access
Smiley
visualtech wrote:
You can try using some obfuscators. A good one is SmartAssembly (I have a licensed version). Otherwise, use some-sort of Public/Private Key cryptography to sign/verify the strings.

Now you have to see that every obfuscated assembly can be de-obfuscated. So the best option we have is: Public/Private key cryptography. So, if the hacker has the Public Key, he can't use it :)

Another thing can be: Signing with a .SNK file or Strong Name it This way if anyone decompiles the code: it will break.

Even after that: a good hacker can sniff the TCP/UDP requests sent out by your software. There is one thing you can do: Send the File as a Compressed gzip stream to a PHP page and tell the PHP page to upload that to the string.

This way: even if the person decompiles your assembly, he won't see the Username/Password for your FTP server. One vulnerability here can be that the "hacker" can get the URL and upload the files he wishes.
To counter this: Sign your gzipped stream with RSA/ECC and verify in the PHP script.

To make the wall harder, use some Padding and put the parts of the signature at some random places.

P.S.: Want more help or help in making this: PM Me :)
Hey visualtech

Wow i didn't understand half of this haha this is all very complicated and i'm pretty lazy so i guess i will have to give up on making a chat program.
Thank You for your help though your knowledge of all this stuff is very impressive but its too much for me to learn.

Smiley cooll;
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: Secure FTP access
Shim
Hi,

If you know about Rabbit Messenger, I was able to sniff the HTTP POST/GET requests so I reported to #Dummy1912 then he fixed it by himself or someone helped him maybe you can ask #Dummy1912.
Find my programs on Softpedia
4 posts Page 1 of 1
Return to “Coding Help & Support”