Path traversal and Null Byte attack prevention #15413
-
Hello, I'm working on a project that requires us to verify that we are following security practices documented within OWASP guidelines. Nodejs provides a simple doc with an explanation of these attacks, and makes it clear that the developer should put checks in place to prevent these. https://nodejs.org/en/knowledge/file-system/security/introduction/ I am keen to find out whether the Next.js framework provides any protection against these exploits for us. I have scanned the Next.js docs for details around these two attacks and couldn't find anything of use. I did see that Next.js versions <9.3.2 are vulnerable to a path traversal attack, but no other details are available.
For additional context, we have two apps running Next.js with React. Many thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Next.js has null byte prevention as well as path traversal prevention. We also test the framework itself is not vulnerable to user-input (XSS) attacks. Furthermore, we have very comprehensive path traversal tests since the |
Beta Was this translation helpful? Give feedback.
Next.js has null byte prevention as well as path traversal prevention.
We also test the framework itself is not vulnerable to user-input (XSS) attacks.
Furthermore, we have very comprehensive path traversal tests since the
<9.3.2
vulnerability was found.