Find security vulnerabilities through code review
summary
A practical code-review checklist that flags real, fixable bugs: scan routing files and controllers for missing permissions and delete actions without CSRF tokens (use confirmation forms or route tokens); check database calls for concatenation and replace with placeholders to prevent SQL injection; avoid shell_exec or escape arguments with escapeshellarg when invoking Apache Tika; watch Twig templates for the raw filter and attribute quoting; never blindly call unserialize and disable XML entity expansion to prevent RCE/XXE. Claims come from reviewing more than a thousand modules and mapping issues to OWASP Top Ten.
AI-written summary · about
chapters (40)
- 0:00Introduction
- 0:55Goals of code review
- 2:43Typical module layout
- 3:49Routing
- 5:11Excess Content
- 5:24Site Configuration
- 5:44Open Web Application Security Project
- 6:13Admin Form
- 6:52Deleting Pants
- 7:54No Confirmation Step
- 9:30CSRF tokens
- 12:03Drupal 7 modernized
- 12:30Drupal 8 routing
- 13:20Drupal 7 routing
- 13:57Attack entry points
- 16:35Condition API
- 17:00Extract content from PDF
- 17:46Shell injection
- 17:59URL injection
- 18:44How to prevent this
- 20:22Access hook
- 21:00Access result
- 24:11Crosssite scripting
- 25:05Markup tags
- 25:25Tweak template
- 25:54Crosssite scripting vulnerability
- 26:21Notes labor
- 26:44Attribute escape
- 27:45HTML attribute escape
- 28:13Uncivilized vulnerability
- 28:54Remote code execution
- 30:02What do we learn
- 30:41XML Entity Expand
- 31:34Disable Entity Loader
- 31:57Recap
- 32:58What could go wrong
- 34:00Resources
- 34:44Questions
- 39:15PHP
- 40:43Static types
related talks
01h 02mCode Review For Security
55mIs this okay!? How to review code for security issues
28mStandard Classification: How To Review Code For Vulnerabilities
02h 18mWeb application security (Part 2)
38mFinding Security Issues in Open Source
01h 02mUnderstanding the OWASP Top 10
27mHow to Start Security Testing Without Fear
41mSecurity Vulnerabilities Decomposition: Another Way To Look At Vulnerabilities
