Source: libcgi-github-webhook-perl
Version: 0.06-1.1
Severity: serious
Tags: upstream ftbfs patch
This package is failing its test suite on current sid.
t/basic-functionality.t ..
1..12
not ok 1 - system exited with zero
# Failed test 'system exited with zero'
# at t/basic-functionality.t line 30.
# got: '256'
# expected: '0'
not ok 2 - CGI output as expected
[...]
It was broken by libcgi-pm-perl 5.02-1, which is a rather extensive
security update. Clearly the libcgi-github-webhook-perl package needs
to adapt.
All the failures pretty much come down to this and its variations:
perl -MTest::More=no_plan -MCGI -E 'is(CGI->new->param("POSTDATA"), "foobar")' POSTDATA=foobar
and are fallout from upstream commit
https://github.com/leejo/CGI.pm/commit/bc4022f553301014e522133ba1e1f4e49e3bef08
commit bc4022f553301014e522133ba1e1f4e49e3bef08
Author: Lee Johnson <lee@payprop.com>
Date: Mon Nov 2 16:24:16 2026 +0100
security: don't let clients set POSTDATA/PUTDATA/PATCHDATA/XForms:Model
My eyes bleed and I'm not sure I'll ever want to look at this stuff again,
but patch attached. This seems to work for me with the libcgi-pm-perl
versions from all of trixie, forky and sid (but I only tested lightly.)
These are all test-only fixes, so no Breaks are needed AFAICS.
As for runtime, I see CGI::Github::Webhook::_build_payload() looks at
$q->param('POSTDATA') but I *think* that's OK. It's just pulling it out
of the CGI request it's about to send to calculate a signature.
Not tagging 'forky sid' as Salvatore indicated we'll probably want to
update libcgi-pm-perl in trixie too and this will be needed there too.
Feel free to adjust of course.