You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The LoadURL function allows all response types/formats to be parsed (other than XML), so that it can proceed to the next process (e.g. xmlquery.(*Node).InnerText from xmlquery.FindOne) without validation.
Summary
The
LoadURL
function allows all response types/formats to be parsed (other than XML), so that it can proceed to the next process (e.g.xmlquery.(*Node).InnerText
fromxmlquery.FindOne
) without validation.Description
This security issue affects all
xmlquery
version.Steps to Reproduce
The logs will look similar to the following:
Vulnerable code:
xmlquery/node.go
Lines 50 to 62 in 64ca73d
Recommended Mitigations
LoadURL
, if not XML format; then returns an error.xml.Unmarshal
(only to check the validity of the XML content).The text was updated successfully, but these errors were encountered: