Skip to content

FOUR-32464: [Octane] CRITICAL Data Leaks Between Requests, MEDIUM — Accumulating State - #8963

Open
pmPaulis wants to merge 32 commits into
feature/FOUR-30918from
feature/FOUR-32464
Open

FOUR-32464: [Octane] CRITICAL Data Leaks Between Requests, MEDIUM — Accumulating State #8963
pmPaulis wants to merge 32 commits into
feature/FOUR-30918from
feature/FOUR-32464

Conversation

@pmPaulis

Copy link
Copy Markdown
Contributor

[Octane] CRITICAL Data Leaks Between Requests, MEDIUM — Accumulating State

Related Tickets & Packages

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

rodriquelca and others added 18 commits July 30, 2026 13:22
…lues"

Description:
Fix Octane data leak by storing landlord config in request-scoped Context

Replace SwitchTenant static $landlordValues with Laravel Context to prevent
tenant config snapshots from persisting across Octane requests. Remove unused
duplicate property from ProcessMakerServiceProvider.

Related tickets:
https://processmaker.atlassian.net/browse/FOUR-32474
…er::class"

Description:
Replace AnonymousUser singleton with a scoped binding and add resolve()
to load the user from the database per request. Prevents stale anonymous
user data from leaking across Octane requests while keeping the same
behavior in PHP-FPM and queue workers.

Related tickets:
https://processmaker.atlassian.net/browse/FOUR-32475
…solution and ensure proper redirect handling
Description:
Fix Octane state leak by moving controller addons from static trait property to singleton registry

Replace `HasControllerAddons` static `$addons` with `ControllerAddonsRegistry` to prevent addon accumulation across Octane requests while keeping the existing `registerAddon()` and `getPluginAddons()` API unchanged.

Related tickets:
https://processmaker.atlassian.net/browse/FOUR-32498
FOUR-32465: [Octane] CRITICAL Data Leaks Between Requests "$uid2id"
FOUR-32473: [Octane] CRITICAL Data Leaks Between Requests "$redirectionParams"
devmiguelangel and others added 11 commits July 31, 2026 16:35
…rvice for improved redirect handling and state management
FOUR-32466 Octane CRITICAL Data Leaks Between Requests $processRequest
FOUR-32474 [Octane] CRITICAL Data Leaks Between Requests "$landlordVa…
FOUR-32475 [Octane] CRITICAL Data Leaks Between Requests "AnonymousUs…
FOUR-32498 [Octane] MEDIUM — Accumulating State "addons"
Description:
Fix Octane state leak in ServerTimingMiddleware by reading min_package_time from config per request instead of a static property. Add tests for package timing threshold and config refresh between requests.

Related tickets:
https://processmaker.atlassian.net/browse/FOUR-32507
FOUR-32496 Octane CRITICAL - Data Leaks Between Requests $queryTime
pmPaulis and others added 3 commits August 3, 2026 14:55
FOUR-32505 Octane MEDIUM — Accumulating State SettingObserver
FOUR-32507 [Octane] MEDIUM — Accumulating State "ServerTimingMiddleware"
@processmaker-sonarqube

Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants