Re:Dot Dot Considered Harmful
by mattigames on Wednesday November 28, 2018 @04:04PM
(#18555678)
For irony sake one may link this file as
[ Parent
| on HN ]
Re:Dot Dot Considered Harmful
by Retr0spectrum on Wednesday November 28, 2018 @08:08PM
(#18557295)
Nope, that actually 404's. It may appear to work, because most browsers will apply some equivalent to the `__fdio_cleanpath()` function mentioned in the article, resolving the traversal locally.
You can verify this as follows:
curl -I --path-as-is 'https://github.com/fuchsia-mirror/docs/blob/master/the-book/../../master/the-book/dotdot.md'
Re:Dot Dot Considered Harmful
by mattigames on Wednesday November 28, 2018 @10:02PM
(#18557689)
if most browsers apply it... doesn't that means it works? Maybe not in the resolved-by-the-server-returning-a-304 sense but in at least some sense.
Re:Dot Dot Considered Harmful
by Someone1234 on Wednesday November 28, 2018 @04:11PM
(#18555737)
Not as ironic as you'd think considering the article specifically talks about support for .. in userland tooling and uses CWD as an example.
Re:Dot Dot Considered Harmful
by kiriakasis on Wednesday November 28, 2018 @05:55PM
(#18556465)
well actually the article complains about stuff like
https://github.com/fuchsia-mirror/../internal-page/secret-re...
which quite more serious