Hi Andrew, Thanks for the quick fix and for the credit.
I rebuilt from the salsa tree at 5ab6bdf with both patches applied and re-ran the original request plus variants: /sfx/sub/../../secret-outside.txt, /sfx/sub//../../..., /sfx/sub/./../../..., /sfx/sub/%2e%2e/%2e%2e/... and /sfx/.hidden all return 404 now, while /sfx/marker.txt still returns 200. The strchrnul() + while (*ptr++) change looks right to me. On the upstream forge: github.com/shellinabox/shellinabox has had no commits since January 2019 and its open issues from 2020 have no maintainer response, so I have nowhere useful to report this upstream. If you would still like a record there, I can open an issue pointing at #1153131 and your patch. Apologies for the CVE-2012-4871 reference in my report - it was wrong (that CVE is unrelated) Best regards, Alex J.

