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

Ruby -- Denial of Service and Unsafe Object Creation Vulnerability in JSON

Affected packages
1.9,1 <= ruby < 1.9.3.385,1
rubygem18-json < 1.7.7
rubygem19-json < 1.7.7
rubygem18-json_pure < 1.7.7
rubygem19-json_pure < 1.7.7

Details

VuXML ID c79eb109-a754-45d7-b552-a42099eb2265
Discovery 2013-02-11
Entry 2013-02-16

Aaron Patterson reports:

When parsing certain JSON documents, the JSON gem can be coerced in to creating Ruby symbols in a target system. Since Ruby symbols are not garbage collected, this can result in a denial of service attack.

The same technique can be used to create objects in a target system that act like internal objects. These "act alike" objects can be used to bypass certain security mechanisms and can be used as a spring board for SQL injection attacks in Ruby on Rails.

References

CVE Name CVE-2013-0269