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/Web_page_summation/utils/prepare.py [master] #7

Open mariana-bteixeira opened 7 months ago

mariana-bteixeira commented 7 months ago

Improper_Resource_Shutdown_or_Release issue exists @ projects/Web_page_summation/utils/prepare.py in branch master

A possible Denial of Service was found in line 5 in projects\Web_page_summation\utils\prepare.py file. Not closing connection leaves the server vulnerable to a DoS as the resource are not release properly.Similarity ID: -51427163

Severity: Low

CWE:404

Vulnerability details and guidance

Internal Guidance

Checkmarx

Training Recommended Fix

Lines: 5


Code (Line #5):

with gzip.open(default_path + "sumdata/train/train.article.txt.gz", "rb") as gz:

mariana-bteixeira commented 7 months ago

Issue still exists.