Skip to content

Remove the HTTP task routes (RCE with a known APP_KEY) - #27

Merged
adhikjoshi merged 1 commit into
mainfrom
security/remove-http-task-routes
Nov 27, 2026
Merged

adhikjoshi merged 1 commit into
mainfrom
security/remove-http-task-routes

Conversation

@adhikjoshi

@adhikjoshi adhikjoshi commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

POST /octane/resolve-tasks and /octane/dispatch-tasks ran unserialize(Crypt::decryptString($request->input('tasks'))): code execution for anyone holding APP_KEY. Attackers used this in Nov 2026 against several apps with keys leaked through git. The routes are no longer registered and SwooleHttpTaskDispatcher is removed; outside a Swoole server, tasks run inline with SequentialTaskDispatcher (the old dispatcher's own fallback). tests/Unit/NoHttpTaskRoutesTest.php fails on the old code and passes now; full suite 227 tests OK.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

POST /octane/resolve-tasks and /octane/dispatch-tasks ran
unserialize(Crypt::decryptString($request->input('tasks'))). Anyone
holding APP_KEY could run code in every app using this package, and in
Nov 2026 attackers did, with a key leaked through git. The routes are no
longer registered, and SwooleHttpTaskDispatcher (their only client) is
gone: outside a Swoole server, tasks now run inline with
SequentialTaskDispatcher, which is what the HTTP dispatcher already fell
back to when its request failed. Inside the server, SwooleTaskDispatcher
is unchanged.
@adhikjoshi
adhikjoshi merged commit f250d43 into main Nov 27, 2026
7 of 9 checks passed
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.

1 participant