jwt_tool icon indicating copy to clipboard operation
jwt_tool copied to clipboard

OrderedDict mutated during iteration

Open FallenHero66 opened this issue 3 years ago • 1 comments

Hi, for me, launching the tool produces the following error when checking for external interaction :

Traceback (most recent call last): File "/home/csaudit/jwt_tool/jwt_tool.py", line 2098, in runScanning() File "/home/csaudit/jwt_tool/jwt_tool.py", line 1703, in runScanning scanModePlaybook() File "/home/csaudit/jwt_tool/jwt_tool.py", line 1489, in scanModePlaybook for payloadClaim in backupDict: RuntimeError: OrderedDict mutated during iteration

It seems to be caused by the del statement in the function injectExternalInteractionPayload (line 1639), as replacing it with a print statement fixes the issue. Am I doing anything wrong or is this a bug?

Best, FH

FallenHero66 avatar Dec 15 '21 16:12 FallenHero66

I just ran into the same error. Your suggested fix seems to have worked. Thanks!

j0eblow avatar May 27 '22 03:05 j0eblow