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

Potential file system race condition (CWE-367) in getConfigurationFileOptions() #1651

Closed
1 task done
sjinks opened this issue Jan 15, 2024 · 1 comment · Fixed by #1652
Closed
1 task done

Potential file system race condition (CWE-367) in getConfigurationFileOptions() #1651

sjinks opened this issue Jan 15, 2024 · 1 comment · Fixed by #1652
Assignees
Labels
[Type] Bug Something isn't working

Comments

@sjinks
Copy link
Member

sjinks commented Jan 15, 2024

Often it is necessary to check the state of a file before using it. These checks usually take a file name to be checked, and if the check returns positively, then the file is opened or otherwise operated upon.

However, in the time between the check and the operation, the underlying file referenced by the file name could be changed by an attacker, causing unexpected behavior.

Tracking issue for:

Ref: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition

@sjinks sjinks added the [Type] Bug Something isn't working label Jan 15, 2024
@sjinks sjinks self-assigned this Jan 15, 2024
@sjinks
Copy link
Member Author

sjinks commented Jan 15, 2024

Fixed in #1652.

sjinks added a commit that referenced this issue Jan 18, 2024
fix(dev-env): CWE-367 in `getConfigurationFileOptions()`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant