Skip to content
OpenAdvisories
Medium Public exploit CVE-2008-7248 EUVD-2017-0192GHSA-8fqx-7pv4-3jwm

Improper Input Validation in actionpack

Published Dec 16, 2009 · Updated Aug 7, 2024 · Assigned by redhat

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails 2.2.3-1 —
Debian 13 rails 2.2.3-1 —
Debian 12 rails 2.2.3-1 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems actionpack >= 2.1.0, < 2.1.3 2.1.3 GHSA-8fqx-7pv4-3jwm
RubyGems actionpack >= 2.2.0, < 2.2.2 2.2.2 GHSA-8fqx-7pv4-3jwm

References