Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide how to treat 0.0.0.0 #71

Open
letitz opened this issue Feb 24, 2022 · 6 comments
Open

Decide how to treat 0.0.0.0 #71

letitz opened this issue Feb 24, 2022 · 6 comments

Comments

@letitz
Copy link
Collaborator

letitz commented Feb 24, 2022

Currently in Chromium, 0.0.0.0 is sorted into the "unknown" address space, which means it mostly behaves as "public". This specification treats 0.0.0.0 as "public".

A public website can abuse this to load a resource from localhost by replacing 127.0.0.1 with 0.0.0.0, which routes to localhost on Mac and Linux.

It seems that 0.0.0.0 should be treated as "local" instead, since its meaning is different for every host.

@letitz
Copy link
Collaborator Author

letitz commented Feb 24, 2022

It seems that 0.0.0.0 does not map to localhost on Windows: https://superuser.com/questions/536156/how-do-i-get-0-0-0-0-to-resolve-to-localhost-when-browsing-a-url-that-contains-0

Still, its meaning differs based on the computer resolving the address.

@annevk
Copy link

annevk commented Feb 24, 2022

See also whatwg/fetch#1117.

@avioligo
Copy link

avioligo commented Apr 3, 2024

I did a research on this manner an managed to fingerprint website visitors without any cookies.

POC:
http://ports.sh

@correabuscar

This comment was marked as resolved.

@avioligo
Copy link

avioligo commented Apr 3, 2024

@correabuscar
Because I work at oligo.security and currently work on this :)

See https://www.oligo.security/blog/shadowray-attack-ai-workloads-actively-exploited-in-the-wild

@avilum
Copy link

avilum commented Apr 3, 2024

And I confirm @avioligo is my work account :)
Thanks for thinking twice! It is very responsible @correabuscar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants