Skip to content

Remove unsafe os.system/subprocess calls to prevent command injection#12

Open
zeropath-ai-staging[bot] wants to merge 1 commit intomainfrom
zvuln_fix_2d3a96d7
Open

Remove unsafe os.system/subprocess calls to prevent command injection#12
zeropath-ai-staging[bot] wants to merge 1 commit intomainfrom
zvuln_fix_2d3a96d7

Conversation

@zeropath-ai-staging
Copy link
Copy Markdown

main.py executes user-controlled data with os.system() in multiple places (apply_decryption, fetch_user_notes, login). In login, the password from request.json is passed to os.system(password); in fetch_user_notes, user_id (from session) is executed; in apply_decryption, reverse_content (a function) is mistakenly passed to os.system, which will raise but demonstrates unsafe design. These allow arbitrary command execution by crafting inputs or session values.

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.

0 participants