Rust: Add a test for the log crate + placeholder query.

This commit is contained in:
Geoffrey White
2025-01-21 10:54:42 +00:00
parent f845ac1dd8
commit bb3be2f8af
5 changed files with 158 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
/**
* @name Cleartext logging of sensitive information
* @description Logging sensitive information in plaintext can
* expose it to an attacker.
* @kind path-problem
* @problem.severity error
* @security-severity 7.5
* @precision high
* @id rust/cleartext-logging
* @tags security
* external/cwe/cwe-312
* external/cwe/cwe-359
* external/cwe/cwe-532
*/
import rust
from Element e
where none()
select e, ""