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

Issue #4261 - Fix CWE-73: File Manipulation #4262

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Yummikko
Copy link

PR Description

This PR improves the security of the DeleteStoredData function by properly sanitizing file path before deletion. It addresses a file manipulation vulnerability (CWE-73) flagged by security scans, preventing potential path traversal attacks.

CWE Description

File Manipulation vulnerability occurs when an application allows user input to control or influence paths or file names that are used in file system operations. This could allow an attacker to access or modify system files or other files that are critical to the application. For example, an application may give an attacker the ability to overwrite a specified file or run with a configuration controlled by the attacker

References

IEAM-1538

@Yummikko Yummikko force-pushed the fix_1538_file_manipulation branch 4 times, most recently from 46a55d8 to d3c39d7 Compare March 6, 2025 09:25
Copy link
Contributor

@LiilyZhang LiilyZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash the commits

@Yummikko Yummikko force-pushed the fix_1538_file_manipulation branch from a506382 to cef683c Compare March 7, 2025 09:58
@Yummikko Yummikko requested a review from LiilyZhang March 7, 2025 09:58
@Yummikko Yummikko requested a review from LiilyZhang March 10, 2025 17:44
@LiilyZhang
Copy link
Contributor

@Yummikko Changes look good. Please squash the commits, thank you!

@Yummikko Yummikko force-pushed the fix_1538_file_manipulation branch 2 times, most recently from 7f5afd5 to e4ca71c Compare March 11, 2025 10:40
Signed-off-by: Aleksandra Chyła <aleksandra.chyla@ibm.com>
@Yummikko Yummikko force-pushed the fix_1538_file_manipulation branch from 1ab7a24 to 0984595 Compare March 11, 2025 12:58
@Yummikko Yummikko marked this pull request as draft March 11, 2025 13:43
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

Successfully merging this pull request may close these issues.

2 participants