-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 NEFARIOUSPLAN-CANONICAL-V1 {"body_md":"## `Security3707Test.java` is the disclosure\n\nThe new test file in the patch is a JUnit class that the Jenkins CI runs against the patched build to assert the fix holds. Internally, the test is the bug. It builds two XML payloads that exercise the vulnerability end-to-end, asserts the pre-patch behavior, and asserts the post-patch refusal.\n\nThe first payload is the file-read chain. A `` element with a nested `` whose `` points at `file:///var/jenkins_home/`, planted into the `properties` field of a `hudson.model.ListView`. Routing into `Plugin.doDynamic` serves arbitrary files from the controller filesystem.\n\nThe second payload is the user-impersonation chain. A `jenkins.security.ResourceDomainRootAction$InternalResourceRequest` element carrying `authenticationName=admin` and `browserUrl=computer/(built-in)/scriptText`. The class is reachable by Stapler routing into the same `` slot; its `doDynamic` method calls `User.impersonate2(authenticationName)` and then forwards the request to `browserUrl` under that ACL. The result is a low-privilege user reaching `/computer/(built-in)/scriptText` as `admin`, the Script Console endpoint that runs arbitrary Groovy on the controller. The two chains share one root cause and one entry point; they differ only in which class is planted.\n\nBoth payloads are present in the same file. Both are runnable. The Jenkins CI runs them on every pull request to confirm the patched build rejects them. The advisory's sentence \"the above list is not exhaustive\" is the project signaling that other gadget classes exist beyond what the advisory chose to discuss. The test class in the patch is the same project, on the same day, naming two of the entries on the list it refused to publish.\n\n## `DescribableList` does not enforce its element type\n\nThe structural bug is one diff inside `hudson.util.RobustReflectionConverter`. The vulnerable converter looks up an XStream `Converter` for a field's declared type and, when the field is a `DescribableList`, returns a generic converter that does not know what `T` is. The XML elements inside the `` tag are then deserialized as whatever class their tag names. The patched converter calls `extractElementType` against the field's generic signature and constructs a `DescribableList.ConverterImpl` parameterized on the discovered type.\n\n```diff\n+ else if (DescribableList.ConverterImpl.canConvertRobust(type)) {\n+ Class elementType = extractElementType(field.getGenericType(),\n+ DescribableList.class);\n+ converter = new DescribableList.ConverterImpl(mapper, elementType);\n+ }\n```\n\n`ListView.properties` is declared in source as `DescribableList`. The generic parameter is in the field's `Type`. The converter never read it. A `` element inside `` survives the location-based `ClassFilter` (`hudson.Plugin$DummyImpl` is a Jenkins-core class) and survives the converter (which checks no type). It does not survive the patched converter, which extracts `ViewProperty` from the generic signature and rejects everything that does not inherit from it.\n\nThe same patch hardens `InternalResourceRequest` directly. A new `readResolve` method on the class throws `SecurityException(\"Blocked deserialization of InternalResourceRequest for security reasons\")` so that even a future converter regression cannot ship the impersonation chain. `CopyOnWriteList` and `PluginWrapper` receive parallel hardening for the same reason. The patch closes one converter bug and four gadget classes in a single commit.\n\nThis is why the chain cannot be a generic ysoserial primitive. Jenkins's `ClassFilter` insists that every deserialized class lives in jenkins-core or an installed plugin. Apache Commons-Collections gadgets, the historical XStream payload, die at that filter. The gadget has to be a Jenkins-resident type. The first six hours of the published research session that produced the public PoC repo are the AI reading that constraint, trying to bypass it, and failing.\n\n## The file-read exploit is four classes long\n\nA low-privilege user with `View/Configure` and `Overall/Read` posts a `config.xml` to `createView`, then gets the file by walking the Stapler URL into the planted gadget.\n\n```bash\ncurl -u lowpriv:lowpriv123 \\\n -H \"Content-Type: application/xml\" \\\n -H \"Jenkins-Crumb: \" \\\n --data-binary @evil.xml \\\n \"http://target:8080/createView?name=cve53435\"\n\ncurl -u lowpriv:lowpriv123 \\\n \"http://target:8080/view/cve53435/properties/0/etc/passwd\"\n# root:x:0:0:root:/root:/bin/bash\n```\n\n`evil.xml`:\n\n```xml\n\n\n cve53435\n \n \n \n file:/\n \n \n \n \n \n \n \n \n false\n\n```\n\nFour moving parts. `hudson.Plugin$DummyImpl` is a public inner class in jenkins-core that extends `Plugin`, included in the project for tests, present in every released JAR. `hudson.PluginWrapper.baseResourceURL` is a `public final URL` field that XStream writes to during deserialization. `hudson.Plugin.doDynamic(StaplerRequest2, StaplerResponse2)` is a routable method that calls `getWrapper().baseResourceURL` and serves the file at `restOfPath`. Stapler routing resolves `/view/cve53435/properties/0/etc/passwd` to `ListView.getProperties().get(0).doDynamic(restOfPath = \"etc/passwd\")`. The four ingredients are routine Jenkins code. The bug is that `RobustReflectionConverter` wires them together when the field's declared type forbade the first ingredient.\n\n`/var/jenkins_home/secrets/master.key` is in the same filesystem. Decrypting every stored credential on the controller is one more `curl`. The advisory's CVSS 9.1 is not theoretical.\n\n## The advisory and the patch are the same project, eight days apart\n\nDaniel Beck signed commit `345a3190` on 2026-06-02 with the message `[SECURITY-3707]`. The commit landed on the public `jenkinsci/jenkins` master branch and stayed there. On 2026-06-10 the project published the advisory at jenkins.io/security/advisory/2026-06-10/ and cut releases LTS 2.555.3 and weekly 2.568. The advisory credits the reporter as `dqh1`.\n\nDuring those eight days the public commit named the bug class in its commit message, identified two gadget classes by name in the new test file, and demonstrated both chains end-to-end. It also modified `DescribableListTest` and added `RobustReflectionConverterTest` payloads naming `hudson.util.RobustReflectionConverterTest_-TypeA` as a type-confusion stand-in, so a reader of the patch knew the exact converter primitive without ever needing the gadget classes spelled out. A reader of the public commit log on 2026-06-04 held the working PoC. A reader of the advisory on 2026-06-10 held a paragraph that said \"there are likely other ways to exploit this vulnerability, and the above list is not exhaustive.\"\n\nThis is release-lag-disclosure at a much shorter window than the canonical multi-month exhibits, eight days instead of months, but the mechanism is the same: the git log carried the de-facto disclosure during the gap while the package-manager-resolved binaries continued to install the unfixed code. The advisory's withholding language is a defender-protection choice the project's threat model demands. The regression test is a release-engineering practice the project's CI culture demands. The two demands are incompatible. Both demands won. The result is that an attacker reading the open-source patch and a defender reading the open-source advisory are reading the same vendor speaking at the same hour, and only one of them is being shown the chain.\n\nThis is `patch-test-is-the-disclosure`. Wherever a vendor advisory uses the language \"the list is not exhaustive\", \"details withheld for safety\", or \"we are not publishing the gadget\", the patch commit's `test/` directory carries the entries the advisory refused to publish. The advisory is documentation. The regression test is code. Vendors who run CI cannot ship the second without admitting what the first said.\n\n## What it took to derive without the commit\n\nThe public PoC at github.com/AmesianX/CVE-2026-53435 ships, alongside the working exploit, two session transcripts totalling roughly 12,000 lines in English and Korean. The transcripts are sold in the README as \"the 8 hours of wrong turns that produced [the exploit].\" Read against the patch commit, they are also a record of how much of the chain survives without the commit being opened.\n\nThe session opens at 15:00 on Friday 2026-06-12 with a vague advisory and a local Jenkins lab containing both the vulnerable 2.555.2 and the patched 2.555.3 build. The first six hours are the AI reversing the vulnerable jenkins-core: decompiling classes, building gadget candidate lists, trying Commons-Collections chains, hitting `ClassFilter`, pivoting to Jenkins-resident types, never finding the routing hop. The transcript records the AI refusing, repeatedly, to fabricate a working marker. From round 88:\n\n> 98% into 0%. A PoC that doesn't reproduce is 100% failure. I won't do that.\n\nAt round 116 the AI's summary reads:\n\n> Over 116 rounds I've evidenced everything I'm able to. The analysis is ahead of any public material out there (gadget source identified + exploit chain completed + routing lock characterized). But I can't conjure that final routing hop in this environment, and I won't fake it. Setting up monitoring for the patch diff / public PoC is the real solution.\n\nA few user turns later, the researcher types, verbatim:\n\n> Hey... the patch is already out, you know.\n\nThe AI fetches `345a3190.patch`, opens the new file `Security3707Test.java`, reads two gadget chains by class name, and writes the working file-read exploit in approximately thirty minutes. The transcript records the moment `root:x:0:0:root:/root:/bin/bash` first prints to the terminal at 23:23 the same Friday.\n\nOne hundred and sixteen rounds of blind binary reversal versus thirty minutes of reading the patch commit. The disparity is the pattern made operational. The advisory's withholding worked against a reader who did not open the commit, for ten days, then collapsed in the time it took to `git fetch`. The patch was public from 2026-06-02. The PoC repo was public from 2026-06-12. Anyone running `git log core/src/main/java/hudson/util/RobustReflectionConverter.java` against `jenkinsci/jenkins` in those ten days held the chain.\n\nPoC: [AmesianX/CVE-2026-53435](https://github.com/AmesianX/CVE-2026-53435).","closing_line":"Withholding the chain required not committing the test. The vendor committed the test.","hook_md":"The Jenkins security advisory for CVE-2026-53435, published 2026-06-10, describes deserialization through an attacker-supplied `config.xml` and closes the relevant paragraph with the sentence \"There are likely other ways to exploit this vulnerability, and the above list is not exhaustive.\" The patch commit that fixes the bug is signed by Daniel Beck eight days earlier, on 2026-06-02, public on github.com/jenkinsci/jenkins as `345a3190`. Among the seven files it touches, one is new: `test/src/test/java/jenkins/security/Security3707Test.java`. The advisory refused to publish the gadget chain. The same project committed it as Java the CI runs on every PR.","post_id":620,"slug":"jenkins-cve-2026-53435-security3707test-is-the-disclosure","title":"CVE-2026-53435: Jenkins Withheld The Gadget. The Patch Committed `Security3707Test.java` Eight Days Earlier.","type":"initial","unreadable_sentence":"Withholding the chain required not committing the test. The vendor committed the test."} -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQRf0htP5+SjynlxywneZjl4jgkQJgUCatUQLgAKCRDeZjl4jgkQ JvfsAQDdpoK6Nxa+G1mlHE/gXmQVOiPsfdeniiQq6hvEfM6XQwEA0iw1k+TTmuER ZAzR+cQ6CDKoZ3FWoOEtvcbxXAbNwQM= =ZC6V -----END PGP SIGNATURE-----