mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
10 lines
311 B
Rust
10 lines
311 B
Rust
// BAD: Using HTTP URL which can be intercepted
|
|
use reqwest;
|
|
|
|
fn main() {
|
|
let url = "http://example.com/sensitive-data";
|
|
|
|
// This makes an insecure HTTP request that can be intercepted
|
|
let response = reqwest::blocking::get(url).unwrap();
|
|
println!("Response: {}", response.text().unwrap());
|
|
} |