Skip to content

Conversation

sameer6pre
Copy link
Owner

Vulnerability Details

  • File Path: Lab_21/city_temperature_control.cpp
  • Vulnerability Type: Command Injection
  • Risk Level: High

Explanation:
The use of the system function with hardcoded commands like cls and pause can lead to command injection vulnerabilities if the input to system is ever influenced by user input. While the current code uses static strings, 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