r/HowToHack • • Aug 08 '20

Doesn't Evilginx tool case unknown login location alert , right ? as acording to the blogest the creator wrote he said that the server sends the captured credentials and logs in with them then grab the cookies back to the user .. why i saw no body mentioning it even though it's an obvious problem.

Post image
200 Upvotes

40 comments sorted by

View all comments

25

u/MunchesOfOats Aug 09 '20

Its a basic MITM(Man in the Middle attack). Often times the surrogate or the evil twin or the rogue device will act as a router to server. Since in protocols like tls where a pre-shared key is shared before the certificates are exchanged, the fake routing device can capture those details and use them to negotiate to the client as if it were the server and to the server as if it was a normal client. Both devices are none the wiser. This is what makes attacks like these so dangerous. Not sure why this tool would be any different.

9

u/alexandre9099 Aug 09 '20

Wouldnt this be basically impossible with HSTS (think that's it, the thing that forces a certain certificate for a certain site)?

0

u/[deleted] Aug 09 '20

[deleted]

2

u/dantose Aug 09 '20

I think you're getting a bit mixed up:

Basically it tells the browser to disable the option to click “continue” when the certificate is invalid.

That is incorrect, but it's un understandable mistake. Accepting an untrusted certificate I different than downgrading to http. What's tripping you up is that Firefox and Chrome additionally disallow the use of invalid certificates (even with an exception) for HSTS sites. This is not, strictly speaking, part of HSTS.

With MITM it is still possible to fake a valid certificate. Like on a company network with a custom Root certificate installed on every device in the network so they can see what you are doing.

I mean, obviously if you can insert a root certificate, you're going to be able to create trusted connections at will. That's basically the equivalent of saying it's possible to bypass a locked door by, you know, having the key. This would be normal break-and-inspect behavior and is a legitimate setup for organizational deployments.