Skip to content

[Precogs Alert] Command Injection detected (CWE-78, Risk: High) #10

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sameer6pre
Copy link
Owner

Vulnerability Details

  • File Path: Lab_21/e-commerce.cpp
  • Vulnerability Type: Command Injection
  • Risk Level: High

Explanation:
The use of the system function with hardcoded commands like cls can be exploited if the input to the command is ever influenced by user input. While in this case, the commands are hardcoded, the use of system is inherently risky and can lead to command injection vulnerabilities if the code is modified in the future or if the commands are dynamically constructed.

Please review and address the issue accordingly.

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.

1 participant