-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Veracode Scan of the app results into "377:Insecure Temporary File" #644
Comments
I would appreciate if someone can look into this issue please? Fixing this issue is required to get our app into production. Thanks. |
Happy to take a PR that fixes this behavior. I'm not even sure this function is actually used in your case. |
@vanniktech Thanks for your response, unfortunately, it will be difficult for me to fix this and raise PR as I am not a Kotlin guy. Will it be possible for you to try removing this last parameter from below method and keeping first two?
I am not sure what will affect if we remove this last parameter, but the solution to above issue tells us to use createTempFile method which has only 2 parameters. --OR-- If we want to use 3 argument version of this method, then we have to pass SANBOXED path in 3rd argument in this method. I am bit not sure as of now on this what path to pass here. |
It might. I also don't know how this method is used currently. I took the library over and haven't had time yet to unravel all of those nested Utils calls.
If that's supported by Android it might be the best option. |
Just checking if is there any progress on this? May we get the above fix soon? Would you please let me know about your plan on this? This is very crucial for our app to fix this security issue raised by Veracode scanning. Thanks, |
Look, this project is open source. I have no obligations and neither does any other open source author. You're free to use this library as is or not. I have no plans about this. My priorities are currently elsewhere. If it is so urgent to you, you could fix it yourself and raise a PR that fixes this in a way it's not breaking anyone else and everyone could benefit from the fix. |
When we scan the app through Veracode to check for any static code vulnerabilities, it gives the "Insecure Temporary File".
Following is detail and also provides remedies on how to fix this.
This error points to BitmapUtils.kt Line 461 at:
Android-Image-Cropper/cropper/src/main/kotlin/com/canhub/cropper/BitmapUtils.kt
Line 461 in 05b4d58
Which is main reason of this issue reported by Veracode static screen.
I am not using this library directly into any native app, but using it into .NET Maui app via one of the Binding Library which originally uses this native Android library.
I have reported similar issue there too: jmbowman1107/ImageCropper.Maui#28 but even after updating to 4.6.0 didn't resolve it.
Would you please have a look and fix this please, so we can update to latest .aar and build our .NET Maui supported binary?
Thanks,
Milan G
The text was updated successfully, but these errors were encountered: