Skip to content

Disable session upload progress - #349

Merged
mnapoli merged 1 commit into
brefphp:mainfrom
aran112000:disable-session-upload-progress
Oct 25, 2026
Merged

mnapoli merged 1 commit into
brefphp:mainfrom
aran112000:disable-session-upload-progress

Conversation

@aran112000

Copy link
Copy Markdown
Contributor

PHP published an advisory for CVE-2026-115560 (not fixed yet), which recommends session.upload_progress.enabled=0 until the next release.

On Lambda the feature can't work anyway: API Gateway and Lambda receive the whole request before PHP runs, so PHP parses the upload in a few milliseconds, and with session.upload_progress.cleanup=On (the default) the progress is removed from the session straight away. No request could ever read it, so disabling it shouldn't break anything.

I added a check in test_2_extensions.php. Tested in bref/arm-php-85:3.0.10 and bref/php-84:3.0.10 with the new bref.ini: the check fails with the current one and passes with this change. FPM picks it up too (php-fpm -i).

🤖 Generated with Claude Code

API Gateway and Lambda receive the whole request before PHP runs, so upload
progress can never be tracked. Disabling it removes the attack surface of
CVE-2026-115560, as recommended by PHP until the next release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mnapoli

mnapoli commented Oct 25, 2026

Copy link
Copy Markdown
Member

On Lambda the feature can't work anyway

That's exactly the conclusion I came to when they announced it. So that's not needed, right?

@GrahamCampbell

Copy link
Copy Markdown
Contributor

I'd lean towards doing this anyway. If it's not supposed to be reachable, then we can view this as security hardening and not a problem to just turn off.

@GrahamCampbell

Copy link
Copy Markdown
Contributor

For what it's worth, I did this in my own PHP Lambda layers already.

@aran112000

Copy link
Copy Markdown
Contributor Author

It was flagged in our latest security review, and I suspect many others will see the same too. I wouldn't say it's worth a release on its own, but just hardening of something that needant ever be a vector for Bref

@mnapoli
mnapoli merged commit 35b5368 into brefphp:main Oct 25, 2026
5 checks passed
@mnapoli

mnapoli commented Oct 25, 2026

Copy link
Copy Markdown
Member

Fair! Merging

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.

3 participants