goldbergyoni / goldbergyoni/nodebestpractices

Security: Prevent SSRF attacks

Open
#292 2 comments 4 reactions 0 assignees View on GitHub
help wanted new best practice security writer-needed
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.