app-store-server-library
Affected
- introduced
0.2.0, fixed3.1.2(ecosystem)
Fixed versions
3.1.2
Fix
- Fixed version
3.1.2pip install --upgrade app-store-server-library==3.1.2
Advisory
Also known as: None
Apple App Store Server Python Library: SignedDataVerifier accepts stale OCSP GOOD responses and can bypass certificate revocation checks
SummarySignedDataVerifier attempts to perform online revocation checking when enable_online_checks=True, but its OCSP validation logic accepts stale GOOD responses as valid indefinitely. In appstoreserverlibrary/signed_data_verifier.py, _ChainVerifier.check_ocsp_status() verifies the OCSP response signature and CertID match, but never validates the freshness window carried by producedAt, thisUpdate, or nextUpdate.
As a result, a previously valid signed OCSP GOOD response can be replayed after it is expired, and the library will still treat the certificate as good. If an App Store signing certificate or intermediate is ever revoked, applications using this library with online checks enabled can continue accepting JWS objects signed with the revoked key as long as a stale signed OCSP response is replayed.
Medium Basis: The source's own band: MODERATE
0.2.0, fixed 3.1.2 (ecosystem)3.1.2
3.1.2pip install --upgrade app-store-server-library==3.1.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0