Skip to content

Latest commit

 

History

66 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖥️ Vulnerable Code Snippets

Welcome to this repository containing vulnerable code snippets for various security vulnerabilities. The purpose of this repository is to help educate developers and security enthusiasts about common security flaws and how to mitigate them. 😈

Web Link

https://securitycipher.com/docs/security/secure-code-explain/

Content Source

This repository is the source collection for SecurityCipher's Secure Code Explain documentation. Each article follows the same compact format:

  1. A short introduction
  2. ## 🥺 Vulnerable Code
  3. An explanation of why the code is vulnerable
  4. ## 😎 Secure Code
  5. An explanation of the security controls in the fixed version

The collection now includes 60 examples across web applications, APIs, authentication, cryptography, secure configuration, and AI security.

AI and LLM Security

The AI collection contains code-level examples for all ten OWASP Top 10 for LLM Applications categories:

Maintainer

This project is developed and maintained by Piyush Kumawat. Feel free to reach out to me for any issues, concerns, or contributions. Your feedback and contributions are highly appreciated!

😍 Contributing

Feel free to contribute additional code snippets for different security vulnerabilities or improvements to the existing ones. Keep the vulnerable and secure examples directly comparable, explain the exact weakness and control, use fenced code blocks with the correct language, and never include working credentials or private targets.

📱 Follow me on social media

Releases

Packages

Used by

Contributors