Daft idea. Morse Code URls.
https://shkspr.mobi/./././../../.././././apple-touch-icon.png
Where /./ is a dot and /../ is a dash. Both collapse up to to previous directory.
I cannot think of any practical use for this!
Daft idea. Morse Code URls.
https://shkspr.mobi/./././../../.././././apple-touch-icon.png
Where /./ is a dot and /../ is a dash. Both collapse up to to previous directory.
I cannot think of any practical use for this!
When your browser, or curl, or whatever sees:
example.com/.././.././../index.html
They do the path traversal locally. So the "Morse code" never gets sent to the server.
@Edent looks a bit too much like path traversal...
@bakachu that is exactly what it is.
@Edent Impractical uses are welcomed.
@Edent slashdot wants a word with you
@Edent Isn't . the current directory? Sort of a null op for directory traversal.
@denny yup.
@Edent well, it looks like it would crash one of those Fortinet edge security things
@Edent I can't decide whether I love this or hate it
@Edent mm, having looked at logs I know this isn’t always the case. It’s definitely possible for relative paths to make it to the server.
@mellowfish Are you sure? I can't find any HTTP requests like that. Very happy to be proven wrong.
@Edent looks like we are both right, browsers and default settings in curl do collapse these but malicious requests can be crafted and sent and curl does have a flag to skip the path correction too. Plus I think I was mostly seeing things like encoded paths and query strings which neither handles. So *we* can’t have nice things like Morse code paths but bad actors can. Typical…
@Edent Could try sending requests like that with own code, not sure they’d get through whatever layers your hosting has though!
How about using . & - and having an entire Morse code Wikipedia?
@Edent ok I gotta try sending an http request with that manually to make sure it reaches the server, to see what happens
@Edent ...I don't know what I expected lol
@Edent TAKE THE FIRST STEP TOWARD BUILDING YOUR FINANCIAL FUTURE!
Are you interested in owning shares in some of the world's leading companies?
Our share investment agency is committed to helping clients explore investment opportunities, understand the stock market, and make informed investment decisions.
💼 What We Offer:
- Access to share investment opportunities.
- Professional investment guidance.
- Different investment options to suit your budget.