Upload
tamlxkurwp
View
216
Download
0
Embed Size (px)
Citation preview
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 1/99
New Tricks For Defeating SSL InPractice
Moxie [email protected]
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 2/99
The Back Story
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 3/99
SSL And Certificate Chaining
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 4/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 5/99
You probably know what they do...
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 6/99
More specifically...
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 7/99
CA Certificate
SiteCertificate
Embedded in browser.
All powerful.Certifies that a site certificate isauthentic.
Identifies a particular URLIs known to be authentic basedon CA Certificate's signature.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 8/99
CA Certificate
SiteCertificate
Embedded in browser.
All powerful.Certifies that an intermediateCA is authentic.
Identifies a particular URLIs known to be authentic basedon CA Certificate's signature.
IntermediateCANot embedded in browser.Still sort of all-powerful.Certifies that a site certificate isauthentic.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 9/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 10/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 11/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 12/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 13/99
Here Be Dragons
Very tempting to use asimple recursivefunction.
Everyone focuses on thesignature validation.
The result of a naïveattempt at validation is
a chain that is complete,but nothing more.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 14/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 15/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 16/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 17/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 18/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 19/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 20/99
...is a somewhat obscure field.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 21/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 22/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 23/99
sslsniff
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 24/99
sslsniff
s s l s n i f f
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 25/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 26/99
sslsniff
s s l s n i f f
Back before people started checking BasicConstraints:
All you had to do was pass sslsniff a valid leaf node certificate for any domain.It would automatically generate a certificate for the domain the client was connecting toon the fly.It would sign that certificate with the leaf node.IE, Konqueror, etc... wouldn't notice the difference.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 27/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 28/99
Th thi l i TV t di
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 29/99
The things you learn in TV studios.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 30/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 31/99
The things you learn in TV studios
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 32/99
The things you learn in TV studios.
It's a button, so if you mouse-over it, the link isn't displayedin the browser bar at the bottom.The best you could do would be to view the page source,but that's problematic in browsers like Firefox that issue asecond request to the server for the source.
This button posts to an HTTPS link, but there's no way toknow that.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 33/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 34/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 35/99
There are some generalizable attacks
here.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 36/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 37/99
Then: A Positive Feedback System
A number of indicators deployed to designate thata page is secure.
A proliferation of little lock icons.
URL bars that turn gold.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 38/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 39/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 40/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 41/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 42/99
Now: An example from Firefox 3
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 43/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 44/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 45/99
Now: An example from Firefox 3
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 46/99
Now: An example from Firefox 3
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 47/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 48/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 49/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 50/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 51/99
Nobody types https://
(or http:// for that matter)
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 52/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 53/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 54/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 55/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 56/99
A First Cut Recipe: sslstrip
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 57/99
A First Cut Recipe: sslstrip
s s l s t r i p
Watch HTTP traffic go by.Switch <a href=”https://...”> to <a href=”http://...”> and keep a map of
what's changed.Switch Location: https://... to Location: http://... and keep a map of what'schanged.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 58/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 59/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 60/99
How does it look?
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 61/99
Secure Site
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 62/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 63/99
Secure Site
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 64/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 65/99
A 1.5 Cut: sslstrip
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 66/99
s s l s t r i p
Let's do everything the same, but now watch out for favicon requests aswell.
If we see a favicon request for a URL that we've stripped, we'll send back afavicon of our choosing instead.
A new trick:
What should our favicon be?You guessed it:
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 67/99
You guessed it:
Once again, a secure site:
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 68/99
Once again, a secure site:
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 69/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 70/99
We're doing pretty good.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 71/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 72/99
And if we want we can throw in a little lockicon.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 73/99
ome s tes prov e no v s edifference.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 74/99
ome s tes prov e no v s edifference.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 75/99
The sites themselves confuse us.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 76/99
The sites themselves confuse us.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 77/99
A Few Gotchas
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 78/99
Content encodings that are difficult to parse(compress, gzip, etc...)
Secure cookies won't get sent over HTTP that'sbeen stripped of SSL.
Cached pages that don't give us a chance to swapout their links.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 79/99
Another problem: sessions
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 80/99
The most interesting stuff to log are POSTs thatwould have been sent via SSL.
Particularly, usernames/passwords.
Sessions often cause us to miss the login step,
which is unfortunate.
Sure, we can get the session cookie, but that'ssmall change.
So let's strip sessions too.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 81/99
s s l s t r i p
302 for the same URL,but with Set-Cookie:headers that expire allthe cookies we gotfrom the request.
Request
Request Again(Sans-Cookies)
And a little less sketchy...Sessions expire and it's not always clear when or why
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 82/99
When we start a MITM against a network, strip allthe traffic immediately, but don't touch the
cookies for 5 min (or some specified length of time).
As the cookies go by, make note of the activesessions.
After the time is up, start killing sessions, but onlynew sessions that we haven't seen before. Theseshould be the “long running” sessions that won'tbe seen as suspicious should they disappear.
Sessions expire, and it s not always clear when or why,but they don't usually expire right in the middle of anactive session. So what we do now:
Some Results Of This Trick?
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 83/99
login.yahoo.com 114Gmail 50
ticketmaster.com 42
rapidshare.com 14
Hotmail 13
paypal.com 9
linkedin.com 9
facebook.com 3
In 24 Hours
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 84/99
117 email accounts.16 credit card numbers.
7 paypal logins.
Over 300 other miscellaneous secure logins.
Number of people that balked.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 85/99
0
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 86/99
Where can we go from here?
Combining this technique with homographattacks.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 87/99
Sometimes the glphys of different characters lookalike. PayPaI.com looks like paypal.com but isreally paypai.com
Made more interesting by IDN. It became possibleto register a domain with characters that appearidentical to the glyphs of characters in the Latincharacter set.
In 2005, Eric Johanson registeredpаypal.com, which uses the Cryllic 'a' look-alike character and displays as paypal.com
Standard homograph attack:
Combining this technique with homographattacks.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 88/99
The attack vector has to be targeted. Byregistering pаypal.com, all we can attackis paypal.com
Phishing is really just too much work. It'd be nicerif we could just MITM a network and get whateverpeople are doing.
The IDN stuff has been fixed. For TLDs like .com,Firefox renders the IDN characters as punycodeboth in the URL bar and the status bar.
What I don't like about the standard attack:
pаypal.com today
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 89/99
So how can we reinvent this to attackSSL?
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 90/99
We can't use .com or any TLD that Firefox willrender into punycode.
We want something that we can generalize, not just a simple substitution for some particular
character in a domain.So, what's in most URLs? . / & ?
one trick
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 91/99
Register a domain like ijjk.cnGet a domain-validated SSL wildcard cert for*.ijjk.cn
Use IDN-valid characters that look very similar to
'/' and '?' to create false URLs.MITM HTTP and swap out the HTTPS links as usual.
But this time, instead of just stripping the HTTPSlinks, we swap them out for our own look-alikes.
one trick
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 92/99
https://www.gmail.com/accounts/ServiceLogin becomeshttps://www.gmail.com/accounts/ServiceLogin?!f.ijj
The latter does not display as punycode in the
status bar or the URL bar.When resolved, it becomes www.google.xn--comaccountsservicelogin-5j9pia.f.ijjk.cn
When we MITM these connections, we do SSL on
both ends, but are able to present our own valid*.ijjk.cn cert to the client.
Here We Go
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 93/99
s s l s t r i p
302 for the same URL,but with Set-Cookie:headers that expire allthe cookies we gotfrom the request.
Request
Request Again(Sans-Cookies)
Proxy HTTP back, andswap out all the HTTPSlinks for our own look-alike HTTPS links.
SSL request for a look-alike domain that wecontrol.
Proxy data back fromthe actual domain.
An Example
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 94/99
An Example
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 95/99
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 96/99
Lessons...
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 97/99
Lots of times the security of HTTPS comes downto the security of HTTP, and HTTP is not secure.
If we want to avoid the dialogs of death, startwith HTTP not HTTPS.
Once we've got control of that, we can do allkinds of stuff to re-introduce the positiveindicators people might miss.
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 98/99
Other tricks...
7/30/2019 Colon Cleanser - A Full Detox Plan For Body, Mind, And Soul
http://slidepdf.com/reader/full/colon-cleanser-a-full-detox-plan-for-body-mind-and-soul 99/99
sslstrip
http://www.thoughtcrime.org