Last active
December 11, 2015 00:09
-
-
Save dtao/4514320 to your computer and use it in GitHub Desktop.
Rails initializer to disable XML parameter parsing to protect against newly discovered exploit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable XML parameter parsing completely as a stopgap measure until upgrading to Rails 2.3.16 | |
# to defend against arbitrary code execution vulnerability; see: | |
# https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion | |
ActionController::Base.param_parsers.delete(Mime::XML) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment