cordova-plugin-antitampering
cordova-plugin-antitampering copied to clipboard
How to integrity all of static files?
Hallo @duddu!
In last pentest
feedback we got finding with title "not enough integrity"
again :). Because plugin check only ASSETS
-folder. Is it possible to do this check for all files? Or I didn't understand the workflow of this plugin?
My www
-folder looks like this:
Update:
"assets"
-folder was not enough. Because bad guy
can change resources from res
folder and add some options...
As a solution, we can implement something like this:
public boolean checkIntegrity(Context mContext){
PackageManager pm = mContext.getPackageManager();
try{
PackageInfo appInfo = pm.getPackageInfo(mContext.getPackageName(), PackageManager.GET_SIGNATURE);
String sig = appInfo.signatures[0].toCharString();
// hier should be checked Signature
}
catch(Exception e){}
}
Memo:
- OWASP Top Ten Mobile: M8 - Code Tampering
- MASVS-1.0-Anforderung: 8.3
Hi @WuglyakBolgoink do you have a solution for this?
Can you support me? how can I do that implementation, I have a project with which it is required that they are not modified neither assets nor res, thank you in advance
Hallo guys! can anyone with android/iOS skills help us?