TMA-MYSQL-5.10
Securely Define Stored Procedures and Functions DEFINER and INVOKER
Mô tả
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.
Cách kiểm tra
Phương pháp kiểm tra: Xem xét thủ công
Khuyến nghị này không thể kiểm tra tự động. Lần quét sẽ liệt kê mục này kèm hướng dẫn khi bạn truyền cờ --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.
Cách khắc phục
Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng
Use SQL SECURITY INVOKER where possible, or set DEFINER to a least-privileged account (ALTER/CREATE ... DEFINER=...), and restrict EXECUTE on sensitive routines.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- mysqldatabaseauthorizationmanual
- Tham chiếu
- CIS Oracle MySQL Community Server 8.4 Benchmark v1.1.0 - 5.10 Securely Define Stored Procedures and Functions DEFINER and INVOKER