Page 1 of 1

Question about data access

Posted: Wed Jul 13, 2016 1:26 pm
by KGB1st
Today I thought about one interest situation. It's concern login server users' registration and authentication.
Can you tell me about secure transfer beetween client and server. Is sniffer can compromise user login and password?

I think in a certain degree it can to do this. So I ask to you: how I can secure accounts of my users?

Re: Question about data access

Posted: Wed Jul 13, 2016 6:07 pm
by Sacrifice
Seccondary Auth. Check configs in High Five branch.

Re: Question about data access

Posted: Wed Jul 13, 2016 6:28 pm
by KGB1st
Sacrifice wrote:Seccondary Auth. Check configs in High Five branch.
and what can I see?

I ask about serious traffic sniffers and protocol attacks..

Re: Question about data access

Posted: Wed Jul 13, 2016 10:13 pm
by Sacrifice
KGB1st wrote:
Sacrifice wrote:Seccondary Auth. Check configs in High Five branch.
and what can I see?

I ask about serious traffic sniffers and protocol attacks..
We cant do nothing...

Re: Question about data access

Posted: Wed Jul 13, 2016 11:26 pm
by canislupus
KGB1st wrote:Today I thought about one interest situation. It's concern login server users' registration and authentication.
Can you tell me about secure transfer beetween client and server. Is sniffer can compromise user login and password?

I think in a certain degree it can to do this. So I ask to you: how I can secure accounts of my users?
The attacker would have to dehash the password (very very time consuming)

Its so time consuming, that its not even worth it.

If you plan on adding account management to your website, you must enforce https, and make sure you are not leaving any access to the database. I've seen people have their php scripts containing database credentials left accessible.
Remember to set up a firewall and hold the door.

Re: Question about data access

Posted: Thu Jul 14, 2016 2:59 am
by KGB1st
:really: hold the door...

Re: Question about data access

Posted: Thu Jul 14, 2016 3:52 pm
by HorridoJoho
When the users computer has a virus which steals passwords, you can't prevent account stealing. Because the virus can localy always hook the location where the account credentials are encrypted before they get encrypted. You can never secure account credentials when the users machine itself is compromised.

The best way you can do is to provide asymmetric cryptography over the course of the data transmissions. But when that key to decrypt the message from the other side is transmitted over the same device, a sniffer only needs to be present at the time the keys are exchanged and can read what the other side is sending. This only solves that nobody can fake messages from the other side because the sniffer don't have the private key for encrypting traffic. But it can fake messages to the other side.

To make absolutely sure, you would have to introduce another authentication device, like sending a mobile message to the phone number of the users account, which requires the mobile device to send a message back to grant login access. That is the only way to protect from users compromised machine and unauthorized logins. Credentials however can always be stolen when the users machine is compromised.

Re: Question about data access

Posted: Thu Jul 14, 2016 5:31 pm
by KGB1st
Thanks. I read your post and fully understand it, but I think that mob msg and SSL certificate's very dearly for easy server
proxy's dearly too. So we can do it with client side SSL + iptables, but problem in client, we must huck and rewrite more code :problem:

Re: Question about data access

Posted: Sun Sep 04, 2016 2:58 am
by Zoey76
Someone else could confirm but I don't think the client supports SSL.

Re: Question about data access

Posted: Sun Oct 02, 2016 6:58 am
by canislupus
Just use diffie-hellman so you dont have to worry about managing and protecting the private key.

Cryptography will protect the data while its in transit, but it wont protect a user with a keylogger installed in his machine :problem: