From 8944944877b00351daec54fa9f4a6650111e12fc Mon Sep 17 00:00:00 2001 From: Ana Scolari <127357173+apsscolari@users.noreply.github.com> Date: Mon, 10 Mar 2025 17:34:52 -0700 Subject: [PATCH] Update test.py --- test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.py b/test.py index 360ad4a..8b1c21b 100644 --- a/test.py +++ b/test.py @@ -7,6 +7,12 @@ user = 'test' password = 'Password1234' +# critical vuln example +user_input = input("Enter filename to read: ") +with open(user_input, 'r') as file: # Vulnerable to directory traversal + content = file.read() + + google_api_token = "AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q" gh_PAT = "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"