xml - Java SAX parser, How do I prevent character references entirely? (DoS attack) -


the xml files of incoming request needs validated. 1 requierement character references prevented entirely because of possible dos attacks. if configure saxparserfactory below:

saxparserfactory spf = saxparserfactory.newinstance(); spf.setfeature(xmlconstants.feature_secure_processing, true); 

then parer still resolves 100.000 entity expansions.

the parser has encountered more "100.000" entity expansions in document; limit imposed application. 

the prevention of external references done via entityresolver works fine. how prevent character references?

character references cannot cause denial of service attack, there no reason prevent them.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -