Skip to content

fix: bound response read in integration catalog fetch (import of github/spec-kit#3812) - #116

Open
one-kash wants to merge 2 commits into
mainfrom
import/pr-3812
Open

fix: bound response read in integration catalog fetch (import of github/spec-kit#3812)#116
one-kash wants to merge 2 commits into
mainfrom
import/pr-3812

Conversation

@one-kash

Copy link
Copy Markdown

Imported from upstream PR github#3812
Original author: @Quratulain-bilal
Original head branch: fix/unbounded-integrations-catalog-read


Replace unbounded
esp.read() with
ead_response_limited() in integrations/catalog.py to prevent DoS via oversized catalog responses.

…egression test

- Update FakeResponse.read() to accept size parameter for bounded reads
- Add test_fetch_rejects_oversized_catalog_response regression test
- Verifies _fetch_single_catalog uses MAX_JSON_METADATA_BYTES

Fixes github#3812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants