4 ms·
Slashes aren't allowed, so wouldn't be able to do any path traversals: https://api.rocket.rs/src/rocket/request/param.rs.html#298 https://api.rocket.rs/src/rock
by anonova 9y ago
Slashes aren't allowed, so wouldn't be able to do any path traversals: https://api.rocket.rs/src/rocket/request/param.rs.html#298 https://api.rocket.rs/src/rocket/request/param.rs.html#298
- e12e 9y agoAfaik remember windows will parse additional dots beyond the two first as another level up? Cross-platform secure coding is hard... (Not sure about this code though, just making an observation).
- DiThi 9y ago> On Windows, decoded segment contains any of: '\' And on Japanese and Korean windows? It uses the yen symbol as path separator. Depending on how the path is read or interpreted, filtering the yen may be necessary. https://msdn.microsoft.com/en-us/library/dd374047(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/dd374047(v=vs.85).a...
- deleted 9y ago[deleted]