eBPF-based security platform
upatches/app-sandbox: name the PHP2Shell advisories as its fixes
John Fastabend935bde240d9a
diff --git a/Documentation/upatches/learn/examples.rst b/Documentation/upatches/learn/examples.rstindex 27476b97..fd5b2474 100644--- a/Documentation/upatches/learn/examples.rst+++ b/Documentation/upatches/learn/examples.rst@@ -149,7 +149,9 @@ app-sandbox- ``sandbox_policy``, which ``gen_policy.py`` writes from``sandbox.toml`` and the policy bits of the Beefile* - Tree entry- - ``app-sandbox``, without a selector+ - ``app-sandbox``, without a selector, with ``fixes`` naming the+ PHP2Shell advisories, CVE-2026-109618 and CVE-2026-109619, which+ its two sandboxes contain rather than closeA task that executed a file of a sandbox carries its policy bit in``shirudo_task_policy``, and so do its children. The programs read thatdiff --git a/upatches/app-sandbox/Beefile b/upatches/app-sandbox/Beefileindex 277076e2..0201c015 100644--- a/upatches/app-sandbox/Beefile+++ b/upatches/app-sandbox/Beefile@@ -1,6 +1,6 @@[package]name = "app-sandbox"-description = "Sandboxes for applications: what they execute, where they connect, which files they write"+description = "Sandbox php2shell vulnerable applications: Block lateral movement into other binaries and unexpected sockets."license = "GPL-2.0 OR BSD-2-Clause"authors = ["Authors of shirudo"]@@ -33,3 +33,4 @@ paths = ["/usr/sbin/php-fpm*", "/usr/local/sbin/php-fpm"][upatches.tree]id = "app-sandbox"+fixes = ["CVE-2026-109618", "CVE-2026-109619"]diff --git a/upatches/app-sandbox/README.md b/upatches/app-sandbox/README.mdindex 8cd60ae7..44c9a4aa 100644--- a/upatches/app-sandbox/README.md+++ b/upatches/app-sandbox/README.md@@ -15,6 +15,14 @@ programs and from reaching beyond private networks: what an attackerwho found a hole in the application does first. Replace them withsandboxes for your own applications.+Its tree entry names the PHP2Shell advisories, CVE-2026-109618 and+CVE-2026-109619, as `fixes`, so that a backend that reads the tree+counts a node that loaded the upatch as shielded against them. The+sandboxes do not close the hole in PHP: a request can still run the+attacker's code in the application. They keep that code from leaving a+PHP file behind, from running another program and from connecting out.+Upgrade PHP as well.+A sandbox restricts and never grants: a task in it keeps every limit ithad. It is not a boundary against root outside the sandbox, and a filereplaced after the load is a new file without the label, see "Limits".@@ -93,10 +101,10 @@ shirudo bpm push app-sandbox-1.0.0.bee oci://<registry>/<namespace>/app-sandboxshirudo bpm tree append app-sandbox-1.0.0.bee oci://<registry>/<tree> --keys-dir <keys>```-The Beefile has a tree entry without a selector, so every node that-syncs the tree loads the upatch; on a node without the applications it-labels nothing and restricts nothing. Add a selector to load it only-where they run:+The Beefile has a tree entry without a selector, with the advisories+above as its `fixes`, so every node that syncs the tree loads the+upatch; on a node without the applications it labels nothing and+restricts nothing. Add a selector to load it only where they run:```toml[upatches.tree.selector.labels]