Portofino is an open source web development framework. Portofino before version 5.2.1 did not properly verify the signature of JSON Web Tokens. This allows forging a valid JWT. The issue will be patched in the upcoming 5.2.1 release.
[
{
"signature_type": "Function",
"source": "https://github.com/manydesigns/portofino/commit/8c754a0ad234555e813dcbf9e57d637f9f23d8fb",
"id": "CVE-2021-29451-2560587e",
"signature_version": "v1",
"target": {
"file": "portofino-core/src/main/java/com/manydesigns/portofino/shiro/AbstractPortofinoRealm.java",
"function": "extractPrincipalFromWebToken"
},
"deprecated": false,
"digest": {
"function_hash": "141322969805560288871577444896735620335",
"length": 715.0
}
},
{
"signature_type": "Line",
"source": "https://github.com/manydesigns/portofino/commit/8c754a0ad234555e813dcbf9e57d637f9f23d8fb",
"id": "CVE-2021-29451-9cf3eccb",
"signature_version": "v1",
"target": {
"file": "portofino-core/src/main/java/com/manydesigns/portofino/shiro/AbstractPortofinoRealm.java"
},
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"15900513510547366107223776206875115124",
"26039227727501982742739733518517470805",
"263965540314289591177238528356334531321",
"34640008619900967385022735126404535186",
"56201910954737050915540142485105777945",
"46892763502352582972166688450090913724",
"242727743996252305700707362619988265736",
"78374941452588086761477626765977442458",
"245523448944291164094127665778744559275",
"231407925247793714683297951750019516414",
"192259986345102780249517187823404256451",
"307291406416778154578703077818255715550",
"310316670659533062983213146885662735896",
"147042180282165835640744495835920526384",
"241549570988009870386515562068015244831",
"255436138018100681615315478331002201211",
"215504118029276891190797224639299984427",
"218286371992736902393304921606497053630"
]
}
},
{
"signature_type": "Line",
"source": "https://github.com/manydesigns/portofino/commit/8c754a0ad234555e813dcbf9e57d637f9f23d8fb",
"id": "CVE-2021-29451-aa91b60e",
"signature_version": "v1",
"target": {
"file": "dispatcher/src/main/java/com/manydesigns/portofino/dispatcher/security/jwt/JWTRealm.java"
},
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"154632233226431257115924754845279259361",
"229101360517188178793922346604677038731",
"282253326813037747866732023504652009785",
"46892763502352582972166688450090913724",
"242727743996252305700707362619988265736",
"87547318534919822325194499934361483454",
"38476329351522647137813291969970393051",
"185997668655876916161753665061404947638",
"222484476783586277386583450790271186081",
"13437620745830202459290455651188957507",
"164237610865250894511345364163710649290",
"24583194819651907583133877699570278367",
"172405037911253773038717583981896429852",
"317343983647700348895365512060822314074",
"158398849797909265704875928922689690583"
]
}
}
]