Actions
Bug #14205
closedUnsanitizied filename leads to command injection in 'resolv.rb'
    Bug #14205:
    Unsanitizied filename leads to command injection in 'resolv.rb'
  
        
          
          Updated by drigg3r (Jasraj Bedi) almost 8 years ago
          
          
        
        
      
      - Subject changed from Unsanitizied filename leads to command injection in 'resolv' to Unsanitizied filename leads to command injection in 'resolv.rb'
 
PoC Concept Code
require 'resolv'
a = Resolv::Hosts::new("|echo 1 > /tmp/rce")
a.getaddress("test")
        
          
          Updated by nobu (Nobuyoshi Nakada) almost 8 years ago
          
          
        
        
      
      - Status changed from Open to Closed
 
Applied in changeset trunk|r61349.
Fixed command Injection
- resolv.rb (Resolv::Hosts#lazy_initialize): fixed potential
command Injection in Hosts::new() by use of Kernel#open.
[Fix GH-1777] [ruby-core:84347] [Bug #14205] 
From: Drigg3r drigg3r@yandex.com
Actions