2
2
2462014-05-03 11:30:49
PHP
246, 2014-05-03 11:30:49

How to protect a web application written in php from injecting external XML entities?

Hello.
You need to protect your web application (written in php using Symfony 2.0.18) from injecting external XML entities. Namely, according to the recommendation, "prohibit support for external entities (External Entity), external parameters of entities (External Parameter Entity) and external DTDs (External Doctype)".
The potentially dangerous simplexml_load_string command , which is used in particular in the phpexcel module.
Is it enough to use the libxml_disable_entity_loader(true) function ? And in what place of the project to execute it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question