MySQL
TMA-MYSQL-5.10
Securely Define Stored Procedures and Functions DEFINER and INVOKER
中レベル 1手動レビューmysql
説明
Stored procedure and stored function declarations include a definition of permissions which can be used to escalate permissions. It's important to inspect these settings to ensure they do not unnecessarily escalate privileges.
チェック方法
監査方法: 手動レビュー
この推奨事項は自動ではチェックできません。--include-manual を指定すると、スキャン結果にこの手順付きで一覧表示されます。
Run SHOW PROCEDURE STATUS; and SHOW FUNCTION STATUS; and inspect Definer and Security_type. For SQL SECURITY DEFINER routines owned by powerful users, review the code (SHOW CREATE PROCEDURE/FUNCTION <name>) and information_schema.routines/parameters.
修正方法
修正方法: ガイダンスまたは IaC パッチ
Use SQL SECURITY INVOKER where possible, or set DEFINER to a least-privileged account (ALTER/CREATE ... DEFINER=...), and restrict EXECUTE on sensitive routines.
プロパティ
- オペレーティングシステム
- すべて
- タグ
- mysqldatabaseauthorizationmanual
- 参照
- CIS Oracle MySQL Community Server 8.4 Benchmark v1.1.0 - 5.10 Securely Define Stored Procedures and Functions DEFINER and INVOKER