Skip to content

Rust: Add unsafe deserialization query (CWE-502) - #22324

Open
lcmangalagiri wants to merge 2 commits into
github:mainfrom
lcmangalagiri:rust-cwe-502-unsafe-deserialization
Open

Rust: Add unsafe deserialization query (CWE-502)#22324
lcmangalagiri wants to merge 2 commits into
github:mainfrom
lcmangalagiri:rust-cwe-502-unsafe-deserialization

Conversation

@lcmangalagiri

Copy link
Copy Markdown

Detects user-controlled data flowing into deserialization functions (serde_json, bincode, rmp_serde, ciborium, serde_yaml, toml).

Query include:

  1. Extension library with sources, sinks, and barriers
  2. Models-as-data sink definitions
  3. Query help (.qhelp) with examples
  4. Test cases with inline expectations

Query ID: rust/unsafe-deserialization

Detects user-controlled data flowing into deserialization functions
(serde_json, bincode, rmp_serde, ciborium, serde_yaml, toml).

- Extension library with sources, sinks, and barriers
- Models-as-data sink definitions
- Query help (.qhelp) with examples
- Test cases with inline expectations

Query ID: rust/unsafe-deserialization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant