Security release: upgrade if you verify OB 3.0 Data Integrity (LDP) badges and show or act on what the returned credential says. On that path a holder could re-spell the JSON of a signed badge without breaking its proof and make the verified credential show less, or something else, than the issuer signed: an empty description, an issuer without name, no results, no image, or a blank node label as an id. No verdict was affected (validity, status, recipient and issuer id). This closes #348 to #351, the parts of the November audit that 4.6.4 left open and two related findings.
pip install -U openbadgeslibSecurity
- security(ldp): a node described in more than one JSON object (the issuer again as
achievement.creator, acriteriawith the achievement's id, any node a holder splits over two array entries) must carry the same value, or nothing, for every member the model reads, wherever it is described. Before, a holder could move or drop a signed member into the object the model does not read, or exchange two values (#348). - security(ldp): a blank node label is refused as the
idofcredentialSubject.achievementon both suites, and on ecdsa-sd-2023 the returned credential no longer reports a label as arecipient_idor a status entry id (#349).
Fixed
- fix(ob3): an
imagegiven as a string is read as the image's id, on the JWT-VC and Data Integrity paths; a holder could re-spell an image signed with its id alone and the verified credential lost it (#350). - fix(ob3): a value, its one-entry array and the value written twice are read as one value by the model; a holder could wrap or repeat a signed member and the verified credential read it as missing, or as a list where a string is declared (#351).
Known limits
- Where the model reads a list (
tag,evidence,alignment,identifier, ...), a holder can still write an entry twice, which then shows twice. Nothing can be removed or altered that way. - An array whose entries really differ where the model reads one value (only an issuer can sign one) is read as before.
Compatibility
Data Integrity (LDP) only; the JWT-VC path and the low-level proof functions are unchanged.
- Refused now: an
issuerwritten as a bare IRI, or with fewer ofname,url,email,imageandendorsementJwtthan another description of the same id in the credential (such asachievement.creator). This is the exact document a holder gets by cutting a twice-described issuer down, so the two cannot be told apart. The remedy is to describe the node where the model reads it; the refusal names the node, the member and both places. - Also refused: a self-issued badge whose subject and issuer objects carry different
imagevalues, and an ecdsa-sd-2023 presentation that reveals a member of a twice-described node only at the other pointer (reveal/issuer/name, not only/credentialSubject/achievement/creator/name). OB3LdpSignernow raisesErrorSigningFilefor shapes 4.6.4 issued and verified: twoEvidenceor twoResultDescriptionentries with one id that differ, anEvidencewith the id of the achievement or of the issuer, an achievement with the issuer's id and anothername.
The complete entries are in the Changelog.
Verification
Before tagging: flake8 and mypy clean and 3,491 tests passing on the tagged tree with no skips (OPENBADGES_REQUIRE_LDP_SD=1, OPENBADGES_REQUIRE_OID4VCI=1; CPython 3.14.10, openvc-core 1.35.0, pyld 3.3.0), and the same suite on CPython 3.10, 3.11, 3.12 and 3.13 with openvc-core 1.38.1. CI on the pull request (#352): the 3.10 to 3.15 matrix, the Windows leg and both [eudi] legs green. CI on the tagged commit: the 3.10 to 3.15 matrix, the Windows leg and both [eudi] legs green, PyPI publish succeeded; pip install openbadgeslib==4.6.5 into a clean CPython 3.13 environment imports and reports 4.6.5. The new described-twice check runs before the proof is verified; with hundreds of objects sharing one id it costs 3 to 4% more CPU than 4.6.4, and less when it refuses. Each fix was written test-first; the published 1EdTech Complete example itself was not executed (the suite's model of it verifies unchanged), and no independent adversarial review round preceded this release.
Full details in Changelog.txt.