Little bug in BBImageHandler.cs

Dec 11, 2014 at 5:30 PM
Edited Dec 11, 2014 at 5:34 PM
Hi. I was just hacking one site, and see that when you send "DefaultImage" parameter with path to any file that exist, the program check the file extension but DO NOT stop if don't found it. So it try to create a image with the source code. The correct is create an empty image.

It result in an error: Exception Details: System.OutOfMemoryException: Out of memory.

This is not a good choice. Can be a vector of attack that unfortunately, I am not making it work :(

Any idea how I convert a text file in an image :D