You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('test / test name', () => {
cy.matchImageSnapshot()
})
and so it create a folder test , and a file test name .
Can you please sanitize file names ? It seems (here) that cypress use the librarysanitize-filename . ( or better, use a hash as filename, so less names collision risk . And your are sure there is no strange chars )
also, I'm pretty sure it can destroy a system ... what happen if I name my test with path traversal ? something like : ../../../etc/password .
I tested it . And we can write any files on a developper computer .
( not exactly with the same name I say before ... but I'll not tell it here ... in private if you want )
It seems that snapshot names are not sanitized .
I test something like :
and so it create a folder
test
, and a filetest name
.Can you please sanitize file names ? It seems (here) that cypress use the library sanitize-filename . ( or better, use a hash as filename, so less names collision risk . And your are sure there is no strange chars )
also, I'm pretty sure it can destroy a system ... what happen if I name my test with path traversal ? something like :
../../../etc/password
.I tested it . And we can write any files on a developper computer .
( not exactly with the same name I say before ... but I'll not tell it here ... in private if you want )
Please fix this, and create a repository-security-advisory to tell people to update to a safe version
The text was updated successfully, but these errors were encountered: