codedx_xml/codedx_input_sample.xml
<?xml version="1.0"?> <report date="2019-08-06" tool="My Custom Tool"> <findings> <finding severity="high"> <native-id name="My Tool ID" value="abc123" /> <cwe id="259" /> <tool name="My Custom Tool" category="Security" code="Hardcoded-Password" /> <location type="file" path="java/org/owasp/webgoat/lessons/WsSAXInjection.java"> <line start="64" end="66" /> </location> <description format="plain-text">A password is hardcoded here.</description> <metadata> <value key="Password">password</value> </metadata> </finding> <finding severity="high" type="dynamic"> <cwe id="310" /> <tool name="My Custom Tool" category="Security" code="Cookie without HttpOnly flag set" /> <location type="url" path="/webgoat/attack"> <variants> <variant> <request method="GET" path="/webgoat/attack" query=""> <headers> Accept: text/html, application/xhtml+xml, */* Accept-Language: en-US User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko Accept-Encoding: gzip, deflate Host: 192.168.216.139:8080 Authorization: Basic Z3Vlc3Q6Z3Vlc3Q= Proxy-Connection: Keep-Alive DNT: 1 </headers> <body truncated="false" original-length="0" length="0"></body> </request> <response code="200"> <headers> Server: Apache-Coyote/1.1 Pragma: No-cache Cache-Control: no-cache Expires: Wed, 31 Dec 1969 19:00:00 EST Set-Cookie: JSESSIONID=1115D46CB13A097B975996BF90C21455; Path=/WebGoat Content-Type: text/html;charset=ISO-8859-1 Content-Length: 3931 Date: Thu, 16 Oct 2014 18:04:24 GMT </headers> <body truncated="false" original-length="3930" length="3930">DQoNCg0KDQo8IURPQ1RZUEUgaHRtbCBQVUJMSUMgIi0vL1czQy8vRFREIFhIVE1MIDEuMCBUcmFuc2l0aW9uYWwvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIveGh0bWwxL0RURC94aHRtbDEtdHJhbnNpdGlvbmFsLmR0ZCI+DQo8aHRtbCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+DQo8aGVhZD4NCjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0idGV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