Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 696262 Details for
Bug 909528
CVE-2013-0276 rubygem-activerecord/rubygem-activemodel: circumvention of attr_protected
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
3-1-attr_protected-cve-2013-0276.patch
3-1-attr_protected-cve-2013-0276.patch (text/plain), 1.76 KB, created by
Kurt Seifried
on 2013-02-11 19:56:15 UTC
(
hide
)
Description:
3-1-attr_protected-cve-2013-0276.patch
Filename:
MIME Type:
Creator:
Kurt Seifried
Created:
2013-02-11 19:56:15 UTC
Size:
1.76 KB
patch
obsolete
>From 647afdb5d2fce6aff4e85cb092de774b448e37c1 Mon Sep 17 00:00:00 2001 >From: joernchen of Phenoelit <joernchen@phenoelit.de> >Date: Sat, 9 Feb 2013 15:46:44 -0800 >Subject: [PATCH] Fix issue with attr_protected where malformed input could > circumvent protection > >Fixes: CVE-2013-0276 >--- > activemodel/lib/active_model/attribute_methods.rb | 2 +- > activemodel/lib/active_model/mass_assignment_security/permission_set.rb | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb >index fba5508..d23b53a 100644 >--- a/activemodel/lib/active_model/attribute_methods.rb >+++ b/activemodel/lib/active_model/attribute_methods.rb >@@ -346,7 +346,7 @@ module ActiveModel > def initialize(options = {}) > options.symbolize_keys! > @prefix, @suffix = options[:prefix] || '', options[:suffix] || '' >- @regex = /^(#{Regexp.escape(@prefix)})(.+?)(#{Regexp.escape(@suffix)})$/ >+ @regex = /\A(#{Regexp.escape(@prefix)})(.+?)(#{Regexp.escape(@suffix)})\z/ > @method_missing_target = "#{@prefix}attribute#{@suffix}" > @method_name = "#{prefix}%s#{suffix}" > end >diff --git a/activemodel/lib/active_model/mass_assignment_security/permission_set.rb b/activemodel/lib/active_model/mass_assignment_security/permission_set.rb >index 9fcb94d..7c7e5df 100644 >--- a/activemodel/lib/active_model/mass_assignment_security/permission_set.rb >+++ b/activemodel/lib/active_model/mass_assignment_security/permission_set.rb >@@ -17,7 +17,7 @@ module ActiveModel > protected > > def remove_multiparameter_id(key) >- key.to_s.gsub(/\(.+/, '') >+ key.to_s.gsub(/\(.+/m, '') > end > end > >-- >1.8.1.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 909528
:
696260
|
696261
| 696262 |
696263