This site is the archived OWASP Foundation Wiki and is no longer accepting Account Requests.
To view the new OWASP Foundation website, please visit https://owasp.org
OWASP Cheat Sheet Series
Our goalThe OWASP Cheat Sheet Series was created to provide a concise collection of high value information on specific application security topics. These cheat sheets were created by various application security professionals who have expertise in specific topics. We hope that the OWASP Cheat Sheet Series provides you with excellent security guidance in an easy to read format.
AuthorsProject Leaders: Jim Manico and Dominique Righetto @
OWASP Cheat Sheets |
ClassificationsSlack & TwitterSlack channel information:
Twitter hash tag: #owaspcheatsheetseries Email ListLicensingThe OWASP Cheat Sheet Series is free to use under the Creative Commons ShareAlike 3 License. Related ProjectsNews and Events
|
Authentication
Ensure all entities go through an appropriate and adequate form of authentication. All the application non-public resource must be protected and shouldn't be bypassed.
For more information, check Authentication Cheat Sheet
Session Management
Use secure session management practices that ensure that authenticated users have a robust and cryptographically secure association with their session.
For more information, check Session Management Cheat Sheet
Access Control
Ensure that a user has access only to the resources they are entitled to. Perform access control checks on the server side on every request. All user-controlled parameters should be validated for entitlemens checks. Check if user name or role name is passed through the URL or through hidden variables. Prepare an ACL containing the Role-to-Function mapping and validate if the users are granted access as per the ACL.
For more information, check Access Control Cheat Sheet
Input Validation
Input validation is performed to minimize malformed data from entering the system. Input Validation is NOT the primary method of preventing XSS, SQL Injection. These are covered in output encoding below.
For more information, check Input Validation Cheat Sheet
Output Encoding
Output encoding is the primary method of preventing XSS and injection attacks. Input validation helps minimize the introduction of malformed data, but it is a secondary control.
For more information, check XSS (Cross Site Scripting) Prevention Cheat Sheet.
Cross Domain
Ensure that adequate controls are present to prevent against Cross-site Request Forgery, Clickjacking and other 3rd Party Malicious scripts.
For more information, check Cross Site Request Forgery
Secure Transmission
Ensure that all the applications pages are served over cryptographically secure HTTPs protocols. Prohibit the transmission of session cookies over HTTP.
For more information, check Transport Protection Cheat Sheet
Logging
Ensure that all the security related events are logged. Events include: User log-in (success/fail); view; update; create, delete, file upload/download, attempt to access through URL, URL tampering. Audit logs should be immutable and write only and must be protected from unauthorized access.
For more information, check Logging Cheat Sheet
Uploads
Ensure that the size, type, contents, and name of the uploaded files are validated. Uploaded files must not be accessible to users by direct browsing. Preferably store all the uploaded files in a different file server/drive on the server. All files must be virus scanned using a regularly updated scanner.
For more information, check https://www.owasp.org/index.php/Input_Validation_Cheat_Sheet#File_Uploads
Global:
- Bring all cheat sheets out of draft fin end of 2018.
- Go through the cheat sheets to make sure what they recommend is consistent with ASVS.
- Move all code snippets of CS from pre tag to syntaxhighlight tag to enhance CS readability.
- Find a way to automate the generation of a PDF referential file gathering all CS.
- Go through the cheat sheets to make sure they follow the CS guideline.
- Create branding stickers for the project.
- Remove CS that that do not bring added value.
Next work on Cheat Sheets (CS) and work assignment:
- Server Side Request Forgery Defense CS:
- Action: Create it.
- People in charge: Dominique Righetto.
- Status: In backlog.
- Forgot Password CS:
- Action: Add a POC in order to provide actionable code.
- People in charge: Dominique Righetto.
- Status: In backlog.
- OS Command Injection Defense CS:
- Action: Add information about system command escaping.
- People in charge: Dominique Righetto.
- Status: In backlog.
- Ruby On Rails CS:
- Action: CS complete refactoring.
- People in charge: Zaur Molotnikov.
- Status: Work in progress.
- Android and iOS CS:
- Action: Replace content of the following CS to pointer to the dedicated section in the OWASP Mobile Security Testing Guide project, motivation is explained here:
- People in charge: Dominique Righetto.
- Status: Work in progress.
- General OAuth introduction CS:
- Action: Create it.
- People in charge: Simon Bennetts & Jim Manico.
- Status: Work in progress.
- OAuth and OIDC for SPA Applications CS:
- Action: Create it.
- People in charge: Simon Bennetts & Jim Manico.
- Status: Work in progress.
Cheat sheet content
The key points that all cheat sheets (called CS) must provides are the following:
- Address a single topic (ex: password storage, OS command injection, REST service, CSRF, HTML5 new features security...).
- Be concise and focused: A cheat sheet must be directly actionable (a CS is not a guide) and must be directly useful for a developer.
- Do not re-address topic handled by others CS. In this case, the target CS will be enhanced with missing points.
- When applicable, provide a solution proposal implementation through a full documented POC on a public well know Git repository (GitHub is highly prefered), the POC can be used as a playground for a developer wanting to play/evaluate your solution proposal.
Cheat sheet structure
A CS must have these sections:
- Introduction: Provide high level information about the topic in order to introduce it to people that do not know it. You can add pointer to external sources if needed but at least give an overview allowing a reader to continue on the CS. You can also add schema or diagram in any part of the CS but be sure to respect the copyright of the source file.
- Context: Describe the security issues that are bring or commonly meet when someone must work on this topic.
- Objective: Describe the objective of the CS. What the CS will bring to the reader?
- Proposition:
- Describe how to address the security issues in a possible technology agnostic approach.
- Using your POC, describe your solution proposal in the more teaching possible way.
- Sources of the prototype: Add pointer to the public GitHub repository on which the source code of POC is hosted.
For the code snippet, use the mediawiki tag syntaxhighlight:
- Tag documentation.
- Supported languages.
If you want to be careful in order to prevent to break something in the target existing CS, you can follow this contribution procedure:
- Take a copy of the CS that you want to enhance (mediawiki syntax in the source tab).
- Add your enhancement and publish the updated CS on the same GitHub repository than your POC (it support the mediawiki syntax).
- Notify the CS Community using this mailing list and the CS Community will review the CS using GitHub comments system.
- When the feedback loop is finished, the CS Community will help you to have right access to the wiki in order to update the CS.
Cheat sheet template
If the target CS is a new one then please use the following template struture.
It allow you to work:
- Online by using the wiki Show preview option.
- Offline by using an text editor like Atom with the mediawiki plugin.
__NOTOC__
<div style="width:100%;height:160px;border:0,margin:0;overflow: hidden;">[[File:Cheatsheets-header.jpg|link=]]</div>
{| style="padding: 0;margin:0;margin-top:10px;text-align:left;" |-
| valign="top" style="border-right: 1px dotted gray;padding-right:25px;" |
Last revision (mm/dd/yy): '''{{REVISIONMONTH}}/{{REVISIONDAY}}/{{REVISIONYEAR}}'''
__TOC__{{TOC hidden}}
= Introduction =
<pre>
Provide high level information about the topic in order to introduce it to people that do not know it.
You can add pointer to external sources if needed but at least give an overview allowing a reader to continue on the CS.
You can also add schema or diagram in any part of the CS but be sure to respect the copyright of the source file.
</pre>
= Context =
<pre>
Describe the security issues that are bring or commonly meet when someone must work on this topic.
</pre>
= Objective =
<pre>
Describe the objective of the CS.
What the CS will bring to the reader.
</pre>
= Proposition =
<pre>
1. Describe how to address the security issues in a possible technology agnostic approach.
2. Using your POC, describe your solution proposal in the more teaching possible way. Use "syntaxhighlight" tag for code snippet.
</pre>
= Sources of the prototype =
<pre>
Add pointer to the public GitHub repository on which the source code of POC is hosted.
</pre>
= Authors and Primary Editors =
<pre>
Add your name and email.
</pre>
= Other Cheatsheets =
{{Cheatsheet_Navigation_Body}}
|}
[[Category:Cheatsheets]]
This section contains the information that we have gathered and plan to use for the creation of the project logo.
Logo will be used for stickers, t-shirt, hoodies and any marketing action about the project.
Big thanks to Colin Watson ([email protected]) for his precious help and advices.
Moto proposed by the community, the project name OWASP Cheat Sheet Series project must appear along the moto:
- Life is too short, AppSec is tough, Cheat!
- Its not cheating if you do it for the right reasons
- Sometimes the only good thing to do is cheat
Background pictures (picture provider and designer will be cited on the project site):
- A smart tech looking woman reading a piece of paper (the cheatsheet) while resting on a beach.
- A woman hand holding cards with an ace up the sleeve.
Pictures proposal (just a proposal as bootstrap, others pictures can be used):
- Cards:
- Beach:
- https://www.pexels.com/photo/laptop-mockup-notebook-outside-4778/
- https://www.pexels.com/photo/apple-check-computer-female-7079/
- https://www.pexels.com/photo/beach-beach-chair-blur-casual-319921/
- https://www.pexels.com/photo/close-up-of-woman-typing-on-keyboard-of-laptop-6352/
- https://www.pexels.com/photo/black-and-gray-computer-laptop-159784/