In-depth lesson · Path traversal
Reports behind this point
Check whether the check is a string prefix without a trailing separator. If so, an entry name beginning with the destination directory name can pass and land in a sibling directory. This is a common incomplete fix and worth testing explicitly.