Skip to content

OWASP Top 10 Web Security Reference

The OWASP Top 10 represents the most critical web application security risks recognized globally.

Failure to enforce proper permission boundaries allows users to act outside their intended permissions.

  • Vulnerability: Applications use client-supplied input to access database records directly without verifying ownership.
  • Example: GET /api/documents?id=10043 accessed by User 10044.
  • Defensive Mitigation: Enforce server-side authorization checks and Row Level Security (RLS) bound to auth.uid().

Exposing sensitive data in transit or at rest due to weak algorithms or protocol downgrade attacks.

  • Enforce TLS 1.3 with strong cipher suites.
  • Mandate HTTP Strict Transport Security (Strict-Transport-Security: max-age=31536000; includeSubDomains; preload).
  • Use modern password hashing functions (Argon2id, bcrypt, PBKDF2) rather than MD5/SHA-1.

Occurs when untrusted data is interpreted as command syntax by an interpreter (SQL, OS Command, LDAP).

Always use parameterized queries and prepared statements:

// SECURE: Parameterized Query
const { data } = await supabase
.from('profiles')
.select('username')
.eq('id', userId);

Never concatenate raw strings into SQL queries.