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 DoS_by_Sleep @ projects/capture_screenshot/screenshot.py [master] #12

Open mariana-bteixeira opened 7 months ago

mariana-bteixeira commented 7 months ago

DoS_by_Sleep issue exists @ projects/capture_screenshot/screenshot.py in branch master

Method parser.parse_args at line 12 of projects\capture_screenshot\screenshot.py gets user input for the parse_args element. This element’s value is eventually used to define the application’s ‘sleep’ period, in time.sleep at line 37 of projects\capture_screenshot\screenshot.py. This may enable a DoS by Sleep attack.Similarity ID: -1117934017

Severity: Medium

CWE:834

Vulnerability details and guidance

Internal Guidance

Checkmarx

Training Recommended Fix

Lines: 12


Code (Line #12):

args = parser.parse_args()

mariana-bteixeira commented 7 months ago

Issue still exists.