Skip to content

GHSA-8f6j-263m-g72x Apple App Store Server Python Library: SignedDataVerifier accepts stale OCSP GOOD responses and can bypass certificate revocation checks

MediumCVSS 6.9
Published
Updated
Exploit status
No public exploit known

Description

Summary

SignedDataVerifier 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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
pypi app-store-server-library(PyPI) = 0.2.0; = 0.2.1; = 1.0.0; = 1.1.0 +15 more 3.1.2 Fixed

Affected products

ProductAffected versionsFixed in
pypi app-store-server-library(PyPI) >= 0.2.0, < 3.1.2 3.1.2
pypi app-store-server-library(PyPI) = 0.2.0 No fix listed
pypi app-store-server-library(PyPI) = 0.2.1 No fix listed
pypi app-store-server-library(PyPI) = 1.0.0 No fix listed
pypi app-store-server-library(PyPI) = 1.1.0 No fix listed
pypi app-store-server-library(PyPI) = 1.2.0 No fix listed
pypi app-store-server-library(PyPI) = 1.2.1 No fix listed
pypi app-store-server-library(PyPI) = 1.3.0 No fix listed
pypi app-store-server-library(PyPI) = 1.4.0 No fix listed
pypi app-store-server-library(PyPI) = 1.5.0 No fix listed
pypi app-store-server-library(PyPI) = 1.6.0 No fix listed
pypi app-store-server-library(PyPI) = 1.7.0 No fix listed
pypi app-store-server-library(PyPI) = 1.8.0 No fix listed
pypi app-store-server-library(PyPI) = 1.9.0 No fix listed
pypi app-store-server-library(PyPI) = 2.0.0 No fix listed
pypi app-store-server-library(PyPI) = 3.0.0 No fix listed
pypi app-store-server-library(PyPI) = 3.1.0 No fix listed
pypi app-store-server-library(PyPI) = 3.1.1 No fix listed
pypi app-store-server-library(PyPI) >= 0.2.0, <= 3.1.1 No fix listed

References