Skip to content

Limit HTTP response body reads to 10MB#141

Closed
jkennedyvz wants to merge 1 commit into
mainfrom
fix/f05-limit-response-body
Closed

Limit HTTP response body reads to 10MB#141
jkennedyvz wants to merge 1 commit into
mainfrom
fix/f05-limit-response-body

Conversation

@jkennedyvz

Copy link
Copy Markdown
Contributor

Wrap ioutil.ReadAll calls with io.LimitReader to prevent memory exhaustion from a malicious or misbehaving server response.

Addresses: F-05 (CWE-400)

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Wrap ioutil.ReadAll calls with io.LimitReader to prevent memory
exhaustion from a malicious or misbehaving server response.

Addresses: F-05 (CWE-400)
@jrozner

jrozner commented Jun 18, 2026

Copy link
Copy Markdown
Member

We should only ever be talking to the ashirt server which shouldn't be sending down massive files. Unclear what the real threat model would be

@jrozner jrozner closed this Jun 18, 2026
@jrozner jrozner deleted the fix/f05-limit-response-body branch June 18, 2026 22:42
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