Categories: All

Here’s How This Web Page Sniffs Anyone’s Browser History Using Sniffly Attack

SP’s: By abusing the HTTP policies of your web browser, a security engineer has devised a new technique to sniff the browsing history. Using Sniffly and HSTS timing attack, an arbitrary website can violate the privacy of its users. Read ahead to more about how it’s done in detail.

In this article, I’m going to tell you about Sniffly. It’s an attack that abuses the HTTP Strict Transport Security and Content Security Policy to allow a website to sniff a user’s past browser history.
Today tracking the web users is something that website owners do very often using malware injection, cookies, enforcing paywalls and malicious ad scripts. Well, there’s a new technique using the browser fingerprinting is in town. In a demonstration at ToorCon 2015, Yan Zhu, a privacy engineer, showed how to do this and the working of Sniffly attack.

To showcase the demo, Yan has made a web page http://zyan.scripts.mit.edu/sniffly/. You can visit it in Firefox/Chrome/Opera with HTTPS everywhere and see how Sniffly digs your browsing history in the left column.

Here’s how Sniffly works:
When you visit the Sniffly page, your web browser tries to load the images from various HSTS domains over HTTP. Sniffly sets a CSP policy that restricts images to HTTP, so that image sources are redirected to HTTPS.

When an image is blocked by CSP, the time taken for the image to be redirected from HTTP to HTTPS is calculated. If the time is of the order of a millisecond, it means no network request was made and it was HSTS redirect. This implies that the user had earlier visited this domain.

However, if the time the taken to redirect the request is of the order of 100 milliseconds, it means the user hasn’t visited the domain before as a network request probably occurred.

The Sniffly attack is allowed if you visit a site that supports HSTS, it can sniff your browsing history by measuring the redirect time.

To know more about the Sniffly attack, visit the Yan’s GitHub page.
spatsariya

Share
Published by
spatsariya

Recent Posts

New HP EliteBook, ProBook, and OmniBook Models Launched in India

HP has introduced a new series of AI-based laptops in India, aimed at professionals and…

23 hours ago

Why Parents Prefer Xbox Gift Cards Over Credit Cards for Their Kids’ Gaming Purchases

Ah, parenting in 2025. Once, the biggest fear was your kid ordering 12 pizzas by…

23 hours ago

Best Racing Games for PS5 Ranked (April 2025)

If you’re a motorsport fan, racing games are probably the closest you’ll ever get to…

24 hours ago

What is 3D Printing & How Does a 3D Printer Work?

Until a few years ago, 3D printing was just an expensive hobby for enthusiasts. However,…

1 day ago

How Video Games Are Redefining Modern Storytelling

Narrative-driven games aren’t new, but what they’re doing now is. We’ve gone way past “games…

2 days ago

Project Slayers Codes (April 2025)

Inspired by the super-popular anime series Demon Slayer, Project Slayers is an action RPG game…

2 days ago