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]

5

u/alexandre9099 Aug 09 '20

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.

but that would need be used on the first time a browser connects to the server, if it's changed (to a self signed/invalid one) after the first connection the browser should complain and not let you go forward, no?

0

u/[deleted] Aug 09 '20

[deleted]

2

u/alexandre9099 Aug 09 '20

in that case it is the same CA, same domain, same everything, just expiration date will be different (well, and as that is a change the fingerprint will also be different). In case of a MITM attack (unless you can get into the server and grab the priv key... which... would lead to something way dangerous than just a MITM) you will get an error because the CA is not the same (as in, if you cannot prove to let's encrypt that the domain is yours you can't get a certificate for that domain), the only option left would be to do a self signed one, which has a different CA, thus the browser should complain.

This is AFAIK, could be wrong, and would be more than happy to be corrected ;)

0

u/[deleted] Aug 09 '20

[deleted]

1

u/AutoModerator Nov 24 '25

This link has not been approved, please read the descriptions for Rule 1 and 5 before trying again. Please wait for a moderator to review and approve this post.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/AutoModerator Nov 24 '25

This link has not been approved, please read the descriptions for Rule 1 and 5 before trying again. Please wait for a moderator to review and approve this post.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.