Ignore:
Timestamp:
2016-06-16T19:10:53+02:00 (8 years ago)
Author:
Don-vip
Message:

findbugs security - XML Parsing Vulnerable to XXE - enable FEATURE_SECURE_PROCESSING for DOM builders

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/bugreport/BugReportSender.java

    r10067 r10404  
    1818import javax.swing.JPanel;
    1919import javax.swing.SwingUtilities;
    20 import javax.xml.parsers.DocumentBuilder;
    21 import javax.xml.parsers.DocumentBuilderFactory;
    2220import javax.xml.parsers.ParserConfigurationException;
    2321import javax.xml.xpath.XPath;
     
    10098
    10199            try (InputStream in = connection.getContent()) {
    102                 DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    103                 Document document = builder.parse(in);
    104                 return retrieveDebugToken(document);
     100                return retrieveDebugToken(Utils.parseSafeDOM(in));
    105101            }
    106102        } catch (IOException | SAXException | ParserConfigurationException | XPathExpressionException t) {
Note: See TracChangeset for help on using the changeset viewer.