Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

JasperReports is an open source Java reporting tool that can write to a variety of targets, such as: screen, a printer, into PDF, HTML, Microsoft Excel, RTF, ODT, Comma-separated values or XML files. It can be used in Java-enabled applications, including Java EE or web applications, to generate dynamic content. It reads its instructions from an XML or .jasper file. ~wikipedia

Can you tell me of a scenario in which a malicious jasper file is uploaded and converted to actual java code (jsp shell) and give an attacker shell access?

share|improve this question

Why limit yourself to this attack vector? Being able to write XML which is in turn parsed by another application is often enough to execute code, read or write arbitrary files (XXE attack) through xml, xpath or xslt injection, depending on the configuration of the parser.

I would imagine the most likely attack to take place would be upload jasper that writes a malicous XML file which reads /etc/passwd, if any password hashes are stored in /etc/password these can be cracked to gain authorized access to the server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.