Description (CNA)
ChirpStack's SQLite-backend device tag filtering (chirpstack/src/storage/device.rs, in both get_count and list) interpolates the user-supplied tag KEY directly into a raw SQL fragment via Rust's format! macro , while only the tag VALUE is safely parameter-bound via Diesel's .bind.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| chirpstack / chirpstack | affected 0 through 4.19.0-test.5 |
CWE
CWE-89
References
- https://github.com/chirpstack/chirpstack
- https://github.com/chirpstack/chirpstack/blob/master/chirpstack/src/storage/device.rs
ADP enrichment
No English description supplied.
No references supplied.