CVE-2013-0233
Description
Devise gem 2.2.x before 2.2.3, 2.1.x before 2.1.3, 2.0.x before 2.0.5, and 1.5.x before 1.5.4 for Ruby, when using certain databases, does not properly perform type conversion when performing database queries, which might allow remote attackers to cause incorrect results to be returned and bypass security checks via unknown vectors, as demonstrated by resetting passwords of arbitrary accounts.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Metasploit modules
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| suse | 12.2 | affected | |
| debian | bookworm | fixed | 3.4.1-1 |
| debian | bullseye | fixed | 3.4.1-1 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| plataformatec | devise | 1.5.0 | |
| plataformatec | devise | 1.5.1 | |
| plataformatec | devise | 1.5.2 | |
| plataformatec | devise | 1.5.3 | |
| plataformatec | devise | 2.0.0 | |
| plataformatec | devise | 2.0.1 | |
| plataformatec | devise | 2.0.2 | |
| plataformatec | devise | 2.0.3 | |
| plataformatec | devise | 2.0.4 | |
| plataformatec | devise | 2.1.0 | |
| plataformatec | devise | 2.1.1 | |
| plataformatec | devise | 2.1.2 | |
| plataformatec | devise | 2.2.0 | |
| plataformatec | devise | 2.2.1 | |
| plataformatec | devise | 2.2.2 | |
| ruby-lang | ruby | | |
References
- https://nvd.nist.gov/vuln/detail/CVE-2013-0233
- http://blog.plataformatec.com.br/2013/01/security-announcement-devise-v2-2-3-v2-1-3-v2-0-5-and-v1-5-3-released/
- http://lists.opensuse.org/opensuse-updates/2013-03/msg00000.html
- http://www.metasploit.com/modules/auxiliary/admin/http/rails_devise_pass_reset
- http://www.openwall.com/lists/oss-security/2013/01/29/3
- http://www.phenoelit.org/blog/archives/2013/02/05/mysql_madness_and_rails/index.html
- http://www.securityfocus.com/bid/57577
- https://github.com/Snorby/snorby/issues/261
- https://web.archive.org/web/20140726005251/http://www.phenoelit.org/blog/archives/2013/02/05/mysql_madness_and_rails/index.html
- https://web.archive.org/web/20200229103406/http://www.securityfocus.com/bid/57577
- http://blog.plataformatec.com.br/2013/01/security-announcement-devise-v2-2-3-v2-1-3-v2-0-5-and-v1-5-3-released
- https://security-tracker.debian.org/tracker/CVE-2013-0233
CWEs
CWE-399
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.