When serving image assets, many web developers find it useful to have a feature that scales the image to a size specified in a URL parameter. Such functionality can not only be used for scaling images down but also making them huge, this leads to Denial of Service (DoS). This Burp plugin that can be loaded into Extender, and passively detects if the size of an image reply is included in the request parameters.
In active scanning mode, it also detects ImageTragick (CVE-2016–3714) based on timing and using Collaborator.
Read more in our blog post about this plugin
- (For testing) install JUnit, put the JARs into
lib
- Execute
ant
, and you'll have the plugin ready inburp-image-size.jar
- JDK 1.6+ (tested on OpenJDK 6 and Oracle JDK 7 + 8, recommended Debian/Ubuntu package:
openjdk-8-jdk
) - Apache ANT (Debian/Ubuntu package:
ant
) - JUnit 4+ (only required for testing)
The whole project is available under MIT license, see LICENSE.txt
.