mariana-bteixeira / python-mini-projects

A collection of simple python mini projects to enhance your python skills
https://python-world.github.io/python-mini-projects/#/
MIT License
0 stars 0 forks source link

CX Unchecked_Input_for_Loop_Condition @ projects/Terminal_Based_Hangman_Game/hangman.py [master] #5

Open mariana-bteixeira opened 10 months ago

mariana-bteixeira commented 10 months ago

Unchecked_Input_for_Loop_Condition issue exists @ projects/Terminal_Based_Hangman_Game/hangman.py in branch master

Method main at line 177 of projects\Terminal_Based_Hangman_Game\hangman.py gets user input from element input . This element’s value flows through the code without being validated, and is eventually used in a loop condition in main at line 177 of projects\Terminal_Based_Hangman_Game\hangman.py. This constitutes an Unchecked Input for Loop Condition.Similarity ID: 1161607269

Severity: Medium

CWE:606

Vulnerability details and guidance

Internal Guidance

Checkmarx

Training Recommended Fix

Lines: 177


Code (Line #177):

while input("Play Again? (Y/N): ").upper() == "Y":

mariana-bteixeira commented 10 months ago

Issue still exists.