+ 1

How to resolve code injection problem arise because of argument parser library like sys.arg, optparse,argparse

I have tried to validate all argument before using them but it didn't work , I got vulnerability on below line opt = parser.parse_args().... using argparse Is there any way to parse command line argument, (I know sub process library in python but that is for automation of command line argument)

23rd May 2023, 5:46 PM
AARTI SHELAR
AARTI SHELAR - avatar
3 Respuestas
+ 2
AARTI SHELAR Pls add in the question description a link to your code in Code Playground and explain the vulnerability you got
24th May 2023, 2:53 AM
Emerson Prado
Emerson Prado - avatar
+ 1
AARTI SHELAR Create -> Code -> New. Save as public. Then edit your question description, tap "+", then "Code", and select the one you saved.
24th May 2023, 9:15 AM
Emerson Prado
Emerson Prado - avatar
0
Where is code playground ? Please tell me
24th May 2023, 6:21 AM
AARTI SHELAR
AARTI SHELAR - avatar