GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Hosted gem redirect wires `gems.rb` in a Gemfile/gems.rb twin locked by Bundler 1.17, which loads `Gemfile`, so the install stays unpatched while the in-run VEX attests it · Issue #751 · SocketDev/socket-patch Closed Labels agent:triagedbugSomething isn't workingSomething isn't workingbughuntFound by a scheduled package-manager bug-hunt agentFound by a scheduled package-manager bug-hunt agentpm:bundlerBundler (RubyGems)Bundler (RubyGems)priority:p1 Description[agent] Found by the scheduled Bundler (RubyGems) bug-hunt routine (ledger #316). SummaryBundler 1.x reads
Bundler 1.17.3 then installs from
ImpactThis produces a false OpenVEX Repro (hosted; patch API and registry mocked on loopback, real rubygems.org upstream)gem install bundler -v 1.17.3 # Ruby <= 3.1 (1.17 calls String#untaint) D='source "https://rubygems.org"\n\ngem "rake"\ngem "colorize", "~> 0.8.1"\n' printf "$D" > Gemfile; printf "$D" > gems.rb bundle _1.17.3_ config --local path vendor/bundle BUNDLE_GEMFILE=Gemfile bundle _1.17.3_ lock; BUNDLE_GEMFILE=gems.rb bundle _1.17.3_ lock socket-patch scan --mode hosted --json --yes --cwd . --vex out.vex.json --vex-product pkg:generic/app@1 ... # status=success, rewrittenFiles=["gems.rb"], vex.statements=1 bundle _1.17.3_ install # loads Gemfile (Bundler.default_gemfile => Gemfile) grep -c SOCKET_PATCHED vendor/bundle/ruby/*/gems/colorize-0.8.1/lib/colorize.rb # 0 socket-patch vex --output post.json ... # exit 2 (correctly refuses after install) Expected vs actual
Matrix (probe run https://github.com/SocketDev/socket-patch/actions/runs/37176834794)
(The ubuntu-latest Ruby 2.7 job ran the 1.17.3 cells too. Bundler 1.17 can't run on Ruby ≥ 3.2.) Suspect code
Activity
MetadataMetadataAssigneesLabelsagent:triagedbugSomething isn't workingSomething isn't workingbughuntFound by a scheduled package-manager bug-hunt agentFound by a scheduled package-manager bug-hunt agentpm:bundlerBundler (RubyGems)Bundler (RubyGems)priority:p1 TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |