We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At https://github.com/projecthydra/om/blob/master/lib/om/xml/term_value_operators.rb#L168, OM trusts that the template will not contain a double-quote. If it does...
require "om" class MockMetadata include OM::XML::Document set_terminology do |t| t.root(path: 'fields') t.title(path: '//title[@attr=";puts %q{I can inject ruby here!}; exit;"]') end def self.xml_template Nokogiri::XML.parse("<fields/>") end end newdoc = MockMetadata.new newdoc.title = 'test'
$ ruby test.rb I can inject ruby here!
That double quotes are not allowed is not immediately obvious. We see it being done at https://github.com/projecthydra-labs/hydradam/blob/master/app/models/datastreams/import_pbcore_datastream.rb#L10
At the root, this is another symptom of the same problem described in #11.
The text was updated successfully, but these errors were encountered:
Yep, that eval stuff is the devil. Somebody should remove it.
eval
Sorry, something went wrong.
Very evil. Purify with fire.
No branches or pull requests
At https://github.com/projecthydra/om/blob/master/lib/om/xml/term_value_operators.rb#L168, OM trusts that the template will not contain a double-quote. If it does...
That double quotes are not allowed is not immediately obvious. We see it being done at https://github.com/projecthydra-labs/hydradam/blob/master/app/models/datastreams/import_pbcore_datastream.rb#L10
At the root, this is another symptom of the same problem described in #11.
The text was updated successfully, but these errors were encountered: