FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

Ruby Activemodel Gem -- Circumvention of attr_protected

Affected packages
rubygem18-activemodel < 3.2.12
rubygem19-activemodel < 3.2.12

Details

VuXML ID beab40bf-c1ca-4d2b-ad46-2f14bac8a968
Discovery 2013-02-11
Entry 2013-02-17

Aaron Patterson reports:

The attr_protected method allows developers to specify a blacklist of model attributes which users should not be allowed to assign to. By using a specially crafted request, attackers could circumvent this protection and alter values that were meant to be protected.

All users running an affected release should either upgrade or use one of the work arounds immediately. Users should also consider switching from attr_protected to the whitelist method attr_accessible which is not vulnerable to this attack.

References

CVE Name CVE-2013-0276