-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added docs about forbidden chars | moved trim helpers to url parser file
- Loading branch information
1 parent
2ed151b
commit 68c8b97
Showing
5 changed files
with
14 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,7 +125,8 @@ npx ssrfcheck ftp://user:pass@localhost:8080/whatever --allowed-protocols=ftp,ht | |
The library checks for complete URLs focusing on the protocol and domain structure and tells whether is a possible SSRF attack or not. This library does NOT checks for path traversal attacks. The checks are made in the following order: | ||
- must contain a hostname | ||
- must not contain login-urls (e.g: https://user:[email protected]) - optionated | ||
- must not contain login-urls (e.g: https://user:[email protected]) (optionated) | ||
- cannot contain RFC forbidden chars: "<>\\^\`\{\|\} (optionated) | ||
- cannot be a dot domain (e.g: https://./../.com) - commonly result of some trick | ||
- cannot be localhost or loopback domain | ||
- cannot be a private IP of any range | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.