All checks were successful
MobSF Security Integration / mobsf-analysis (push) Successful in 13s
20 lines
504 B
JavaScript
20 lines
504 B
JavaScript
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; |