CheatSheetSeries
CheatSheetSeries copied to clipboard
New CS proposal: React Security CheatSheet
What is the proposed Cheat Sheet about?
Building secure React applications by avoiding common vulnerabilities.
What security issues are commonly encountered related to this area?
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE-602: Client-Side Enforcement of Server-Side Security CWE-603: Use of Client-Side Authentication CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE-89: Improper Neutralization of Special Elements used in an SQL Command CWE-94: Improper Control of Generation of Code ('Code Injection')
What is the objective of the Cheat Sheet?
Examples of vulnerable code and how to fix it.
What other resources exist in this area?
I've written about this topic, and made videos related to it in the past. I want to make some new content that goes deeper and broader here.
https://www.youtube.com/watch?v=VtNotePFuJY https://snyk.io/blog/10-react-security-best-practices/ https://medium.com/javascript-security/avoiding-xss-in-react-is-still-hard-d2b5c7ad9412 https://medium.com/javascript-security/avoiding-xss-via-markdown-in-react-91665479900 https://www.synopsys.com/software-integrity/training/software-security-courses/react-js-security.html
@ronperris awesome idea! I am looking forward to see your PR on this. Please review XSS and DOM XSS cheatsheets and cross-reference this new CS from them.
+10000
-- Jim Manico @Manicode Secure Coding Education +1 (808) 652-3805
On Feb 20, 2021, at 11:43 AM, mackowski [email protected] wrote:
@ronperris awesome idea! I am looking forward to see your PR on this. Please review XSS and DOM XSS cheatsheets and cross-reference this new CS from them.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
@ronperris do you need any help with this? If you have a draft that you want to share we can add it to drafts directory and we will start sharing our feedback & help.
@ronperris any updates on this?
@ronperris do you still want to do this?
@ronperris my team would also be very interested. Are you still motivated to pick up this task? Can we contribute?
@jeroenhabets since @ronperris hasn't responded to previous comments, I think you can start on this if you want to.
@szh thanks but like @mackowski we'd be willing to e.g. give feedback on a draft but we're not in a position to take the lead here.