Skip to content

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

Open
sameer6pre wants to merge 1 commit into
mainfrom
Precogs-fix-j5na8kzg
Open

[Precogs Alert] Command Injection detected (CWE-78, Risk: High)#17
sameer6pre wants to merge 1 commit into
mainfrom
Precogs-fix-j5na8kzg

Conversation

@sameer6pre

Copy link
Copy Markdown
Owner

Vulnerability Details

  • File Path: Lab_17/Education.cpp
  • Vulnerability Type: Command Injection
  • Risk Level: High

Explanation:
The use of the system function with a command string can lead to command injection vulnerabilities if the input to the command is influenced by user input or other untrusted sources. In this case, while the command 'cls' is hardcoded and does not directly take user input, the use of system is inherently risky and should be avoided in favor of safer alternatives.

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