Skip to content

Add path traversal protection to file serving#17

Merged
vshakitskiy merged 1 commit into
vshakitskiy:mistressfrom
jtdowney:traversal-fix
May 9, 2026
Merged

Add path traversal protection to file serving#17
vshakitskiy merged 1 commit into
vshakitskiy:mistressfrom
jtdowney:traversal-fix

Conversation

@jtdowney
Copy link
Copy Markdown
Contributor

@jtdowney jtdowney commented May 8, 2026

This is embarrassing, but #16 didn't actually do what I thought it would because I misread https://www.erlang.org/doc/apps/stdlib/filename.html#absname/1.

Check for ".." segments before resolving the file path.
@vshakitskiy vshakitskiy merged commit a5f6cc5 into vshakitskiy:mistress May 9, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants