Skip to content

Guard against access outside of UFO root. - #413

Merged
cmyr merged 1 commit into
mainfrom
path-traversal
Jul 8, 2026
Merged

Guard against access outside of UFO root.#413
cmyr merged 1 commit into
mainfrom
path-traversal

Conversation

@cmyr

@cmyr cmyr commented Jul 7, 2026

Copy link
Copy Markdown
Member

A little issue that surfaced in the course of the other load/save changes: the new API would let the user include .. in a path for an image or data resource, which we don't want.

This is interesting because in some cases a UFO can have a feature file that has include statements pointing to a parent directory, and that is an interesting edge case to consider; however this patch is specifically concerned with handling the image/ and data/ directories, where we can unambiguously reject these paths.

This is interesting because in some cases a UFO can have a feature file
that has include statements pointing to a parent directory, and that
_is_ an interesting edge case to consider; however this patch is
specifically concerned with handling the image/ and data/ directories,
where we can unambiguously reject these paths.
@cmyr
cmyr merged commit dd4685e into main Jul 8, 2026
5 checks passed
@cmyr
cmyr deleted the path-traversal branch July 8, 2026 14:48
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