xutil.dev
Login

OWASP Top 10 Cheatsheet

Quick reference for OWASP Top 10 vulnerabilities covering injection, broken auth, sensitive data, XXE, access control, misconfiguration, XSS, deserialization, components, and logging

Related Categories:SecurityWeb

57 commands

パラメータ化クエリ

Use prepared statements to prevent SQL injection

ORMの使用

Use ORM instead of raw SQL to prevent injection

入力バリデーション

Validate all user input with whitelist approach

ストアドプロシージャ

Use stored procedures to prevent SQL injection

エスケープ処理

Escape special characters to prevent injection

NoSQLインジェクション対策

Prevent $operator injection in MongoDB queries

LDAPインジェクション対策

Escape special characters in LDAP queries

bcryptハッシュ

Hash passwords with bcrypt before storing

多要素認証 (MFA)

Implement TOTP-based two-factor authentication

セッション管理

Regenerate session ID after authentication

レート制限

Implement rate limiting to prevent brute force

パスワードポリシー

Enforce strong password policy

アカウントロックアウト

Temporarily lock account after consecutive failures

HTTPS強制

Force all communication over HTTPS

AES-256暗号化

Encrypt sensitive data with AES-256-GCM

TLS 1.2以上

Allow only TLS 1.2 or higher

機密データのマスキング

Mask sensitive data in logs and responses

鍵管理

Manage encryption keys with HSM or dedicated service

外部エンティティ無効化

Disable external entity processing in XML parser

DTD無効化

Completely disable DTD processing

JSONの使用

Use JSON format instead of XML where possible

XMLバリデーション

Validate XML input against XML Schema (XSD)

SAST検出

Detect XXE vulnerabilities with static analysis tools

RBAC実装

Implement role-based access control

JWTクレーム検証

Verify JWT token claims on every request

CORS設定

Explicitly specify allowed origins

IDOR防止

Verify ownership when accessing object references

最小権限の原則

Grant only the minimum required permissions

デフォルト認証情報変更

Change default passwords and admin accounts

不要なサービス無効化

Disable unused ports and services

エラーメッセージ制御

Hide stack traces in production

セキュリティヘッダー設定

Set security headers using Helmet middleware

ディレクトリリスティング無効化

Disable directory listing on web server

サーバーバナー非表示

Remove server information from HTTP response

出力エンコーディング

Encode output based on HTML context

CSP設定

Set Content-Security-Policy header

HttpOnly Cookie

Set HttpOnly flag on cookies

テンプレートエンジンの自動エスケープ

Enable auto-escaping in template engine

DOM操作の安全化

Use textContent instead of innerHTML

サニタイゼーション

Sanitize rich text input with whitelist approach

署名付きシリアライズ

Add HMAC signature to serialized data

型チェック

Strictly check types during deserialization

Javaデシリアライズ対策

Filter Java ObjectInputStream deserialization

JSON Webトークン検証

Explicitly specify JWT signature algorithm

pickle回避

Avoid Python pickle for untrusted data

npm audit

Scan Node.js dependencies for vulnerabilities

Snykスキャン

Scan project vulnerabilities with Snyk

Dependabot有効化

Enable GitHub Dependabot for automatic security updates

OWASP Dependency-Check

Detect vulnerable libraries with OWASP Dependency-Check

Trivy コンテナスキャン

Scan container image vulnerabilities with Trivy

pip-audit

Scan Python dependencies for vulnerabilities

認証イベントログ

Always log authentication success and failures

アクセスログ設定

Configure detailed access logging

SIEM連携

Send logs to SIEM for correlation analysis

アラート設定

Set up alerts for anomalous activity

監査ログ

Record audit logs for permission changes and data access

ログの改ざん防止

Store logs in write-once storage to prevent tampering