From 6b46ec8b4573344b88d55736a6f84023b4cf0a33 Mon Sep 17 00:00:00 2001 From: Rajendra Reddy Date: Wed, 18 Feb 2026 18:55:32 +0000 Subject: [PATCH] Add securitytest.js --- securitytest.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 securitytest.js diff --git a/securitytest.js b/securitytest.js new file mode 100644 index 0000000..917f449 --- /dev/null +++ b/securitytest.js @@ -0,0 +1,20 @@ +import React from 'react'; +import { Text, View } from 'react-native'; + +const SecurityTest = () => { + // VULNERABILITY: Hardcoded sensitive AWS Key + const AWS_SECRET = "AKIAIMNO7YBXQDWS7BAR"; + + const loginUser = (username, password) => { + // VULNERABILITY: Logging sensitive information to console + console.log("Attempting login for: " + username + " with password: " + password); + }; + + return ( + + MobSF Test File + + ); +}; + +export default SecurityTest; \ No newline at end of file