Repository navigation
fix: backport library security fixes to 1.9.x - #14909
Conversation
…lues (backport #14897, #14792) Swoole accepts a Swoole-Upload-File part header as a ready temp file, so a client could name any server path as its upload and have it unlinked. The framework also calls any callable argument, so a request value such as ["Class", "method"] ran as code. The 1.9 dependency set caps utopia-php/http below the releases that fix both, so the request wrapper applies the guards.
utopia-php/vcs 4.x accepts self-signed certificates on every provider API call by default.
|
Review complete. No blocking issues — approved ✅; 2 nitpicks below. 🧹 Nitpicks (2) — 🟢 2 low
The PR adds three security mitigations: scrubbing client-supplied spoofed upload paths from Swoole's parsed files, stripping control characters from webhook names before they are placed into HTTP headers, and disabling self-signed certificate acceptance for the GitHub VCS adapter. Tests cover the new request filtering and the GitHub adapter behavior.
Reviewed commit: d37b3cb |
🟢 Tier S · Ready to merge
This backport adds request guards for spoofed Swoole upload paths and callable request values, verifies TLS for GitHub VCS API calls, and removes control characters from webhook-name headers. It also adds unit and end-to-end coverage for these behaviors.
📂 Walkthrough · 8
Reviewed |
✨ Benchmark resultsComparing 1.9.x (before) to fix/1.9.x-security-http (after). Before
After
Delta
Top API waits
|
|
@hansi-codes review |
The findings that requested changes are resolved. See the summary comment for what is still open.
Backports the security fixes that live in libraries 1.9.x vendors. 1.9's dependency set caps
utopia-php/httpat rc16 andutopia-php/vcsat 4.5.1, both older than the fixes, so the guards are applied in Appwrite's own code.Swoole-Upload-FileuploadsAppwrite\Utopia\RequestRequest::getParams(): callable values are dropped before the framework sees themAppwrite\Utopia\VCS\Adapter\Git\GitHubverifies (GitHub is the only provider on 1.9)Adapter::call()Related: appwrite-labs/cloud#6674