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 Improper_Resource_Shutdown_or_Release @ projects/Random_word_from_list/Random_word_from_list.py [master] #3

Open mariana-bteixeira opened 7 months ago

mariana-bteixeira commented 7 months ago

Improper_Resource_Shutdown_or_Release issue exists @ projects/Random_word_from_list/Random_word_from_list.py in branch master

*A possible Denial of Service was found in line 1 in projects\Random_word_from_list\Random_word_from_list.py file. Not closing connection leaves the server vulnerable to a DoS as the resource are not release properly.Similarity ID: -784285769

A possible Denial of Service was found in line 18 in projects\Random_word_from_list\Random_word_from_list.py file. Not closing connection leaves the server vulnerable to a DoS as the resource are not release properly.Similarity ID: 721463017

A possible Denial of Service was found in line 24 in projects\Random_word_from_list\Random_word_from_list.py file. Not closing connection leaves the server vulnerable to a DoS as the resource are not release properly.Similarity ID: 1621726536

A possible Denial of Service was found in line 26 in projects\Random_word_from_list\Random_word_from_list.py file. Not closing connection leaves the server vulnerable to a DoS as the resource are not release properly.Similarity ID: -37332264*

Severity: Low

CWE:404

Vulnerability details and guidance

Internal Guidance

Checkmarx

Training Recommended Fix

Lines: 11


Code (Line #11):

file = open(filename)

mariana-bteixeira commented 7 months ago

Issue still exists.