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

Uncontrolled data used in path expression #71

Open
ArielSAdamsNASA opened this issue Sep 27, 2022 · 0 comments
Open

Uncontrolled data used in path expression #71

ArielSAdamsNASA opened this issue Sep 27, 2022 · 0 comments
Labels

Comments

@ArielSAdamsNASA
Copy link

Describe the bug
Accessing paths controlled by users can allow an attacker to access unexpected resources.

Expected behavior
Same behavior, fix warning.

Code snips

fd = open(argv[1], O_RDONLY);

Additional context
From CodeQL.
May use something like const char *filename = argv[1];

Reporter Info
Ariel Adams, MCSG Tech

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

No branches or pull requests

2 participants