api-reviewer
Installation
SKILL.md
API Reviewer
Expert guidance for reviewing and securing Frappe API endpoints to prevent security vulnerabilities.
Overview
Frappe makes it easy to expose API endpoints using the @frappe.whitelist() decorator. However, this convenience can lead to security holes if proper permission checks aren't implemented. This skill helps identify and fix common API security issues.
Common Security Issues
The most common API security problems in Frappe applications:
- Missing role validation: Endpoints accessible to any authenticated user
- Using frappe.get_all instead of frappe.get_list: Bypassing permission checks
- No document permission checks: Modifying records without validation
- SQL injection: Unsafe query construction with user input
- Unrestricted data access: Exposing sensitive information
See references/security-best-practices.md for detailed explanations and examples of each issue.