Add securitytest.js
All checks were successful
MobSF Security Integration / mobsf-analysis (push) Successful in 13s
All checks were successful
MobSF Security Integration / mobsf-analysis (push) Successful in 13s
This commit is contained in:
20
securitytest.js
Normal file
20
securitytest.js
Normal file
@@ -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 (
|
||||
<View>
|
||||
<Text>MobSF Test File</Text>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
export default SecurityTest;
|
||||
Reference in New Issue
Block a user