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

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)?

1

u/BuonaparteII Aug 09 '20

also Google's root domain doesn't have HSTS enabled and they say it's not a security issue

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.

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.

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.

2

u/krisfury Aug 09 '20

TLS pre-shared keys arent used on the web and it's irrelevant to the discussion regarding phishing attacks. HTTPS mainly relies on chain of trust system. The only way mitm attacker can decrypt https is stealing a private key from one of the root CAs or just installing a fake root CA certificate on the victim's device.

1

u/[deleted] Aug 09 '20

[removed] — view removed comment

1

u/AutoModerator Aug 09 '20

Your account does not have enough Karma to post here. Due to /r/HowToHack's tendency to attract spam and low-quality posts, the mod team has implemented a minimum Karma rule. You can gain Karma by posting or commenting on other subreddits. In the meantime, a human will review your submission and manually approve it if the quality is exceptional. After gaining enough Karma, you can make another submission and it will be automatically approved. Please see the FAQ for more information.

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

0

u/minanageh Aug 09 '20

what the hell yo talking about here guys .... the TOOL IS USED FOR WAN PHISHING ATTACKS NOT FRICKIN LAN !!

looks like i am in the wrong sub again.

1

u/MunchesOfOats Aug 09 '20

I'm just speculating as to how the tool works. Its essentially a mitm for 2fa. You can use it anywhere. But in order to redirect traffic to the evilgnx server you need to phish a user. Phishing is used in combination with mitm to make an effective authentication bypass tool.

1

u/minanageh Aug 09 '20

mitm to make an effective authentication bypass tool.

idk if just proxing the traffic between a site and a server called mitm.

1

u/[deleted] Aug 09 '20

[removed] — view removed comment

1

u/AutoModerator Aug 09 '20

Your account does not have enough Karma to post here. Due to /r/HowToHack's tendency to attract spam and low-quality posts, the mod team has implemented a minimum Karma rule. You can gain Karma by posting or commenting on other subreddits. In the meantime, a human will review your submission and manually approve it if the quality is exceptional. After gaining enough Karma, you can make another submission and it will be automatically approved. Please see the FAQ for more information.

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/[deleted] Aug 09 '20

i would agree, but not for the reason you seem to believe.

8

u/Gygh Aug 08 '20

I'm not familiar with this attack, but wouldn't the certificates from the Evilginx server show up as not trusted by your browser?

Aside from encrypting packets, encryption is also meant to verify that the endpoint belongs to a verified source. I realize that, if this is the case, the attacker is relying on the ignorance of the target (much like other attacks).

4

u/minanageh Aug 09 '20

Nope it uses a different domain so.

Https is just to make the targets feel less alerted.

8

u/alcg101 Aug 09 '20

not just that.. https encrypts and verifies the entity you are connecting to. Most users do not pay attention to it, but the cert warning should pop, specially in websites using HSTS like facebook

2

u/alcg101 Aug 09 '20

I thought the same

1

u/minanageh Aug 09 '20

nope you are totally wrong read ... https in phishing attacks is for nothing more than making the victim feel less suspicious about the page.

a false feel of security.

1

u/Gygh Aug 09 '20

I'm guessing that if you're somehow able to change the DNS server of the target, you could clone a page and just not used encryption, much like how a rogue AP might do. Then the use may just not notice that the site they're using isn't secure. But modern browsers will warn you if a website is using HTTPS/ TLS but isn't a known source.

I'm not sure how ready it is to spoof a certificate, but it'll be pretty obvious if someone is using a self signed one

3

u/krisfury Aug 09 '20 edited Aug 09 '20

Why should people make a big deal out of it? It's just another phishing tool. The only twist is that the tool also acts as a client to the legitimate server and as a server to the victim at the same time. It will only work if the victim is dumb enough to enter their credentials without looking at the address bar or they are using old browsers that are vulnerable to homographic phishing attack.

1

u/minanageh Aug 09 '20

Why should people make a big deal out of it?

because it bypasses 2FA tho !?

linkkkkkkkkkk

1

u/krisfury Aug 09 '20

I already said it. It only works if someone does not bother to check what information they are giving to which website. If they bother to check the address bar even for just two seconds, it will render the whole attack useless.

2

u/minanageh Aug 09 '20

If they bother to check the address bar even for just two seconds

in some cases like a captive portal page the url bar doesn't show up.

3

u/[deleted] Aug 09 '20

This is known as a man in the middle attack I think. It’s covered heavily in all courses that I have taken. If I am wrong please teach me.

0

u/minanageh Aug 09 '20

This is known as a man in the middle attack

nope it's not totally true

https://breakdev.org/evilginx-2-next-generation-of-phishing-2fa-tokens/

1

u/[deleted] Aug 09 '20

TL;DR What am I looking at? Evilginx is an attack framework for setting up phishing pages. Instead of serving templates of sign-in pages lookalikes, Evilginx becomes a relay between the real website and the phished user. Phished user interacts with the real website, while Evilginx captures all the data being transmitted between the two parties.

1

u/[deleted] Aug 09 '20

So it’s a tool to do man in the middle.... like I said lol

-2

u/minanageh Aug 09 '20

read the one up yo

0

u/minanageh Aug 09 '20

TL;DR What am I looking at? Evilginx is an attack framework for setting up phishing pages. Instead of serving templates of sign-in pages lookalikes, Evilginx becomes a relay between the real website and the phished user. Phished user interacts with the real website, while Evilginx captures all the data being transmitted between the two parties.

that's what i though when i first read about it ... but it turned out that all what the tool does is "serving templates of sign-in pages lookalikes" then sending the captured login info to the server which tries to login with them and if they were correct it captures the cookies then uses them to grab a copy of the after sign in page to serve to the target

so it's not a real man in middle attack which capable of redirecting and controlling all the traffic not just a single attacker controlled url.

@PilotMiller

1

u/[deleted] Aug 09 '20

So it’s a man in the middle attack.

1

u/[deleted] Aug 09 '20

Your response is a little unclear but I am going to study up on this. It certainly looks like a form of man in the middle but I am a newly minted hacker.