goldbergyoni / goldbergyoni/nodebestpractices
Security: Prevent SSRF attacks
- Dominant language
- Dockerfile
- Stars
- 106k
- Forks
- 10.7k
- PR merge metrics
- No merged PRs in 30d
Description
SSRF (Server Side Request Forgery) vulnerability allows an attacker to change a parameter used on the Node.js application to create or control requests from the vulnerable server.
This introduces attack vectors such as
- scanning the internal network
- timeout the thread
- bypass host based authentication
- sending requests impersonating the server
The example could show the use of a whitelist of allowed domains and protocols from where the Node.js can fetch remote resources (and mention to avoid the use of user provided url's unless really required)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.