TMAegis
Thêm quy tắc cho mssql

TMA-MSSQL-6.1

Ensure Database and Application User Input is Sanitized

Trung bìnhCấp 1Xem xét thủ côngmssql

Mô tả

Always validate user input received from a database client or application by testing type, length, format, and range prior to transmitting it to the database server.

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.

Check with the application teams to ensure any database interaction is through the use of stored procedures and not dynamic SQL. Revoke any INSERT, UPDATE, or DELETE privileges to users so that modifications to data must be done through stored procedures. Verify that there's no SQL query in the application code produced by string concatenation.

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

The following steps can be taken to remediate SQL injection vulnerabilities: ; Review TSQL and application code for SQL Injection ; Only permit minimally privileged accounts to send user input to the server ; Minimize the risk of SQL injection attack by using parameterized commands and stored procedures ; Reject user input containing binary data, escape sequences, and comment characters ; Always validate user input and do not use it directly to build SQL statements

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
mssqldatabasemanual
Tham chiếu
CIS Microsoft SQL Server 2025 Benchmark v1.0.0 - 6.1 Ensure Database and Application User Input is Sanitized