Skip to content
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

CWE-378 | Creation of Temporary File with Insecure Permissions #1399

Closed
mr-africa opened this issue Dec 9, 2021 · 1 comment
Closed

CWE-378 | Creation of Temporary File with Insecure Permissions #1399

mr-africa opened this issue Dec 9, 2021 · 1 comment

Comments

@mr-africa
Copy link

Hello!

I can't find similar issues in google group

My react native android app was audited by some security company. And they have found an issue in jna codebase. (I don't know which third party lib is using your lib)

I'm not sure is it real problem or not. It's looks weird. But my employer require to fix these issues.

in file https://github.com/java-native-access/jna/blob/master/src/com/sun/jna/Native.java

their report here:

CWE-378 | Creation of Temporary File with Insecure Permissions

❖ Severity Medium

❖ Description
The mobile application creates temporary files that may contains
sensitive information that should never be written into a temp file.

❖ Impact
Opening temporary files without appropriate measures or controls can leave the file, its contents, and any function that it impacts vulnerable to attack.

❖ Remediation
The temporary and cache files shall remain private by default, it is recommended to make sure that temporary files are securely deleted when they are not required by the application anymore.

image

Could you help with it please.

@dbwiddis
Copy link
Contributor

dbwiddis commented Dec 9, 2021

See #914 and #985

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants