fix(security): harden upload path validation and trigger filter script integrity#428
Merged
jamesadevine merged 2 commits intomainfrom May 7, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/12d2fc9d-a52a-4882-bcee-0f00dc65e750 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix VSO command injection via file_path newlines in upload safe outputs
fix(security): harden upload path validation and trigger filter script integrity
May 7, 2026
jamesadevine
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This addresses two medium-severity audit findings: newline-based VSO logging-command injection via upload safe-output
file_path, and unverifiedscripts.zipdelivery for trigger filters. The PR tightens path validation at the shared validator level and adds release checksum verification for the gate evaluator bundle.Path validation hardening (upload safe outputs)
\nand\rinis_safe_path_segment, which is used by upload path component validation.upload-workitem-attachmentvalidation.upload-pipeline-artifactupload-build-attachmentupload-workitem-attachmentvalidate.rsTrigger filter scripts supply-chain hardening
checksums.txtand verifyscripts.zipwithsha256sum -c -.unzip -jo scripts.zip gate-eval.pyTest plan
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
spsprodeus21.vssps.visualstudio.com/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-2ad15f64aad94bdc /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-2ad15f64aad94bdc /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-db9ebe80b9191ab1.0cznlf/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/compiler_tests-e0799db0c30078b6.1gcrj6vw6nwuqtj05xtwy95fb.0csz81n.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-db9ebe80b9191ab1.0i01kz/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/compiler_tests-e0799db0c30078b6.1rfiho3un8q8x6o0bgh17pqtu.0csz81n.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-db9ebe80b9191ab1.0ojjh8/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/compiler_tests-e0799db0c30078b6.1rknjctmryus5j31dx1ektv42.0csz81n.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-db9ebe80b9191ab1.0oxb15/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/compiler_tests-e0799db0c30078b6.240j6z25xaklgufqezy8qu0ni.0csz81n.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-db9ebe80b9191ab1.0pz1bg/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/compiler_tests-e0799db0c30078b6.2cp5ph3lj8fi4mip7c7tpotda.0csz81n.rcgu.o 9zr90iqhe9nxn0rm5kc8ln.1wmn5h5.rcgu.o yuxzbv8kivyqxa4c5rx03k.1wmn5h5.rcgu.o 2fdnboyl9sntb9oglwp43h.1wmn5h5.rcgu.o fss034yc3krbkofwljtthm.1wmn5h5.rcgu.o lkkmauvurcrmhoi5o5xq1j.1wmn5h5.rcgu.o i4brrslolypinr9odkx7dz.1wmn5h5.rcgu.o hl6mbs5yodqyo5gmqx8dvq.1wmn5h5.rcgu.o xv2aldjkgquhz0v6nt25fg.1wmn5h5.rcgu.o 4eig2haup2ji5refodkvnq.1wmn5h5.rcgu.o 68z636s6wqiy5gr1gtqaav.1wmn5h5.rcgu.o ms6oewjfh2au0u8cln9pu3.1wmn5h5.rcgu.o nwvyw39e80bjskaef4x5xs.1wmn5h5.rcgu.o 7wia2srj9bmeuwpesnmm6n.1wmn5h5.rcgu.o 2lqnpnljhg3h5ul7gwebcu.1wmn5h5.rcgu.o(dns block)/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-2ad15f64aad94bdc /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-2ad15f64aad94bdc --check-cfg cfg(docsrs,test) --check-cfg targ�� target/debug/dep--error-format=json 769ohanse9kaubwkr9a.1egrrhe.rcgu.o nfhvcqqdj7ss7gp1uh8.1egrrhe.rcgu.o bfqwy8plijt7omphxag.1egrrhe.rcgu.o wpti9yg633jd59jdpot.1egrrhe.rcgu.o sxkdac6vetzzp6punz3.1egrrhe.rcgu.o r3q5v77tamvwsrc7o97.1egrrhe.rcgu.o jn8ar03dnda5kwfhs5i.1egrrhe.rcgu.o veo695su4q5xfu94q1f.1egrrhe.rcgu.o y0xcbydx12w1n24t9hr.1egrrhe.rcgu.o fhozwiwaznju4ss0qp9.1egrrhe.rcgu.o ablc4tqmgibc87e5k2v.1egrrhe.rcgu.o 9rg01gpzhvaakbqxwez.1egrrhe.rcgu.o 2n7uptc6taqtrwwpx5z.1egrrhe.rcgu.o sz4gcidp7m2djqolhzk.1egrrhe.rcgu.o(dns block)spsprodweu4.vssps.visualstudio.com/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-2ad15f64aad94bdc /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-2ad15f64aad94bdc /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-db9ebe80b9191ab1.0cznlf/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/compiler_tests-e0799db0c30078b6.1gcrj6vw6nwuqtj05xtwy95fb.0csz81n.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-db9ebe80b9191ab1.0i01kz/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/compiler_tests-e0799db0c30078b6.1rfiho3un8q8x6o0bgh17pqtu.0csz81n.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-db9ebe80b9191ab1.0ojjh8/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/compiler_tests-e0799db0c30078b6.1rknjctmryus5j31dx1ektv42.0csz81n.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-db9ebe80b9191ab1.0oxb15/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/compiler_tests-e0799db0c30078b6.240j6z25xaklgufqezy8qu0ni.0csz81n.rcgu.o /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-db9ebe80b9191ab1.0pz1bg/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/compiler_tests-e0799db0c30078b6.2cp5ph3lj8fi4mip7c7tpotda.0csz81n.rcgu.o 9zr90iqhe9nxn0rm5kc8ln.1wmn5h5.rcgu.o yuxzbv8kivyqxa4c5rx03k.1wmn5h5.rcgu.o 2fdnboyl9sntb9oglwp43h.1wmn5h5.rcgu.o fss034yc3krbkofwljtthm.1wmn5h5.rcgu.o lkkmauvurcrmhoi5o5xq1j.1wmn5h5.rcgu.o i4brrslolypinr9odkx7dz.1wmn5h5.rcgu.o hl6mbs5yodqyo5gmqx8dvq.1wmn5h5.rcgu.o xv2aldjkgquhz0v6nt25fg.1wmn5h5.rcgu.o 4eig2haup2ji5refodkvnq.1wmn5h5.rcgu.o 68z636s6wqiy5gr1gtqaav.1wmn5h5.rcgu.o ms6oewjfh2au0u8cln9pu3.1wmn5h5.rcgu.o nwvyw39e80bjskaef4x5xs.1wmn5h5.rcgu.o 7wia2srj9bmeuwpesnmm6n.1wmn5h5.rcgu.o 2lqnpnljhg3h5ul7gwebcu.1wmn5h5.rcgu.o(dns block)/home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-2ad15f64aad94bdc /home/REDACTED/work/ado-aw/ado-aw/target/debug/deps/ado_aw-2ad15f64aad94bdc --check-cfg cfg(docsrs,test) --check-cfg targ�� target/debug/dep--error-format=json 769ohanse9kaubwkr9a.1egrrhe.rcgu.o nfhvcqqdj7ss7gp1uh8.1egrrhe.rcgu.o bfqwy8plijt7omphxag.1egrrhe.rcgu.o wpti9yg633jd59jdpot.1egrrhe.rcgu.o sxkdac6vetzzp6punz3.1egrrhe.rcgu.o r3q5v77tamvwsrc7o97.1egrrhe.rcgu.o jn8ar03dnda5kwfhs5i.1egrrhe.rcgu.o veo695su4q5xfu94q1f.1egrrhe.rcgu.o y0xcbydx12w1n24t9hr.1egrrhe.rcgu.o fhozwiwaznju4ss0qp9.1egrrhe.rcgu.o ablc4tqmgibc87e5k2v.1egrrhe.rcgu.o 9rg01gpzhvaakbqxwez.1egrrhe.rcgu.o 2n7uptc6taqtrwwpx5z.1egrrhe.rcgu.o sz4gcidp7m2djqolhzk.1egrrhe.rcgu.o(dns block)If you need me to access, download, or install something from one of these locations, you can either: