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

(BAN-B602) Detected subprocess popen call with shell equals True #22

Open
moonlightnexus opened this issue Oct 3, 2023 · 7 comments
Open

Comments

@moonlightnexus
Copy link
Contributor

Description

Using shell=True can expose you to security risks if someone crafts input to issue different commands than the ones you intended.

Occurrences

There is 1 occurrence of this issue in the repository.

See all occurrences on DeepSource → app.deepsource.com/gh/One-Click-Auth/TrustAuthx-Py-SDK/issue/BAN-B602/occurrences/

@moonlightnexus
Copy link
Contributor Author

Someone Can try it on their local and check if it works properly.

@Just2Deep
Copy link

Hey @moonlightnexus , can i try this out?

@moonlightnexus
Copy link
Contributor Author

@Just2Deep Sure please last time when I checked it on VM linux specifically Debian on ARM It was giving errors.

@Just2Deep
Copy link

@moonlightnexus , is there a dummy API_KEYS i can use for installing APP?

raise HTTPError(
requests.exceptions.HTTPError: Request failed with status code : 406
 this code contains a msg : {"detail":"invalid api or secret key"}

@moonlightnexus
Copy link
Contributor Author

@Just2Deep Why not signup into application with github and use demo account.

@Just2Deep
Copy link

@moonlightnexus the basic issue was that we were passing commands as a single string, instead of list of commands(strings). I tested in ubuntu and windows it works as expected in both.

shall a raise a PR?

Just2Deep added a commit to Just2Deep/TrustAuthx-Py-SDK that referenced this issue Mar 27, 2024
@moonlightnexus
Copy link
Contributor Author

@Just2Deep Sure

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

2 participants