Zum Inhalt springen

XML external entity injection (ARCH6105)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key ruby.security.xxe · Severity error · Category security · CWE CWE-611

An XML parser configured to resolve external entities and DTDs lets attackers read files, perform SSRF, or cause denial of service.

doc = Nokogiri::XML(input) do |config|
config.noent
end
doc = Nokogiri::XML(input) do |config|
config.nonet.nonoent
end

Disable entity expansion and external DTD/network access (nonoent, nonet); reject DTDs entirely for untrusted XML.