Skip to content

A collection of intentionally vulnerable web application code samples for demonstrating and teaching real-world vulnerabilities such as XSS, CSRF, Clickjacking, XXE, Command Injection, and more. Designed for educational and lab purposes only.

License

Notifications You must be signed in to change notification settings

anotherik/vuln-code-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงช vuln-code-lab

A curated collection of intentionally vulnerable code snippets and mini web apps for demonstrating common web application security vulnerabilities. Each example includes a vulnerable version and, where applicable, a secure variant for comparison.

โš ๏ธ Warning: This code is intentionally vulnerable. Run only in isolated environments for educational or testing purposes.

๐Ÿ” Included Vulnerabilities

Vulnerability Folder Description
Clickjacking /ui-redressing Iframe-based UI redressing without protection
Command Injection /command-injection Shell commands built from user input
XML External Entity /xxe XML parsers resolving external entities
Path Traversal /path-traversal Files accessed via ../ in user input
Insecure Deserialization /insecure_deserialization Python pickle abuse leading to RCE

๐Ÿ“ฆ Requirements

  • Python 3.7 or higher
    • Flask
    • (Optional) lxml, defusedxml for XXE-related examples
  • PHP 7.0 or higher (for command injection and file upload demos)
  • Go 1.18 or higher (for path traversal and other backend-related PoCs)

๐Ÿ›ก๏ธ Disclaimer

This project is for educational purposes only. Do not deploy this code to production systems. All examples are designed to demonstrate how vulnerabilities work so developers and security professionals can better understand and defend against them.

๐Ÿ“š License

MIT License โ€“ use freely for education, teaching, and awareness.

About

A collection of intentionally vulnerable web application code samples for demonstrating and teaching real-world vulnerabilities such as XSS, CSRF, Clickjacking, XXE, Command Injection, and more. Designed for educational and lab purposes only.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published