-
Notifications
You must be signed in to change notification settings - Fork 4.2k
This PR fixes issue #1300 #1601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Farreeda
wants to merge
3
commits into
OWASP:master
Choose a base branch
from
Farreeda:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Common cheatsheet shortcuts | ||
xss: cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html | ||
auth: cheatsheets/Authentication_Cheat_Sheet.html | ||
injection: cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html | ||
csrf: cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html | ||
|
||
# Common guide shortcuts | ||
newdev: cheatsheets/Guide_for_New_Developers.html | ||
secarch: cheatsheets/Security_Architecture_Cheat_Sheet.html | ||
|
||
# Tool shortcuts | ||
webgoat: https://owasp.org/www-project-webgoat/ | ||
juice: https://owasp.org/www-project-juice-shop/ | ||
|
||
# Legacy redirects | ||
old_xss: cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html # Maintain backwards compatibility | ||
|
||
# Direct topic shortcuts | ||
SSRF: cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html | ||
XSS: cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html | ||
SQLi: cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html | ||
JWT: cheatsheets/JSON_Web_Token_for_Java_Cheat_Sheet.html | ||
DOS: cheatsheets/Denial_of_Service_Cheat_Sheet.html | ||
XSRF: cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html | ||
Docker: cheatsheets/Docker_Security_Cheat_Sheet.html | ||
GraphQL: cheatsheets/GraphQL_Cheat_Sheet.html | ||
Kubernetes: cheatsheets/Kubernetes_Security_Cheat_Sheet.html | ||
LDAP: cheatsheets/LDAP_Injection_Prevention_Cheat_Sheet.html | ||
OAuth: cheatsheets/OAuth_2.0_Cheat_Sheet.html | ||
SAML: cheatsheets/SAML_Security_Cheat_Sheet.html | ||
TLP: cheatsheets/Transport_Layer_Protection_Cheat_Sheet.html | ||
|
||
# Language-specific shortcuts | ||
Java: cheatsheets/Java_Security_Cheat_Sheet.html | ||
NodeJS: cheatsheets/Nodejs_Security_Cheat_Sheet.html | ||
PHP: cheatsheets/PHP_Security_Cheat_Sheet.html | ||
Python: cheatsheets/Python_Security_Cheat_Sheet.html | ||
Ruby: cheatsheets/Ruby_on_Rails_Cheat_Sheet.html | ||
DotNet: cheatsheets/DotNet_Security_Cheat_Sheet.html | ||
|
||
# Category-based shortcuts | ||
Mobile: cheatsheets/Mobile_Application_Security_Cheat_Sheet.html | ||
REST: cheatsheets/REST_Security_Cheat_Sheet.html | ||
Cloud: cheatsheets/Cloud_Security_Cheat_Sheet.html | ||
Crypto: cheatsheets/Cryptographic_Storage_Cheat_Sheet.html | ||
Password: cheatsheets/Password_Storage_Cheat_Sheet.html | ||
Session: cheatsheets/Session_Management_Cheat_Sheet.html | ||
|
||
# Add more redirects as needed |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script fails here, I assume because there's nothing in the else clause except for the comment. Uncommenting the line fixes this.
However, when I run this locally and run
make serve
the shortcuts don't seem to work. I also don't see where the script reads redirects.yml - it looks like the script is automatically generating the shortcuts which makes me wonder how it will handle possible duplicates. Can you please clarify the process?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your feedback, @szh! I appreciate your insights and apologize for not testing every case @mackowski. The redirects.yml file now includes abbreviations for each path, and it can be easily modified and updated as needed. The
XSS
andauth
issues should be resolved now, but please note that abbreviations should be followed by.html
Thank you, @jmanico, for bringing attention to my PR!