Uh oh!
There was an error while loading. Please reload this page.
test: fix defect path traversal tests - #50124
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot
commented
Oct 11, 2023
Actually, I'm not 100% sure I understand the motivation of the change and would rather wait for Rafael to weigh in
tniessen
commented
Oct 11, 2023
The existing test seems to assume that constallowedFolder=tmpdir.resolve('subdirectory/');keeps the trailing The other JavaScript file then constructs paths as follows: consttraversalPath=allowedFolder+'../file.md';Therefore, |
The test never actually tested what it claims to test because it did not properly insert separators before `..`.
e159f6e to
953131aComparetniessen
commented
Oct 15, 2023
Rebased due to a conflict with f447a46. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot
commented
Oct 16, 2023
nodejs-github-bot
commented
Oct 16, 2023
Landed in 0c56962 |
The test never actually tested what it claims to test because it did not properly insert separators before `..`. PR-URL: #50124 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
The test never actually tested what it claims to test because it did not properly insert separators before `..`. PR-URL: #50124 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
The test never actually tested what it claims to test because it did not properly insert separators before
...