Skip to content

fix: Unbounded file upload without validation#145

Open
mrwind-up-bird wants to merge 2 commits intoSimplyLiz:developfrom
mrwind-up-bird:autofix/b3cf0967/unbounded-file-upload-without-
Open

fix: Unbounded file upload without validation#145
mrwind-up-bird wants to merge 2 commits intoSimplyLiz:developfrom
mrwind-up-bird:autofix/b3cf0967/unbounded-file-upload-without-

Conversation

@mrwind-up-bird
Copy link
Collaborator

AutoFix: Unbounded file upload without validation

Category: security
Severity: high

Issue

Delta ingestion endpoints accept up to 50MB of data without content-type validation or signature verification. This could allow malicious delta artifacts to be uploaded, potentially leading to SCIP index poisoning attacks.

Fix

Added content-type validation to both delta ingestion endpoints to ensure only JSON payloads are accepted. This prevents malicious uploads of non-JSON content that could potentially exploit parsing vulnerabilities. The validation checks for exact 'application/json' type or any JSON subtype (like 'application/json; charset=utf-8').


Generated by nyxCore AutoFix

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