The script extracts exif data from all the jpegs in the upload directory of subrion. If we can inject some metadata that allow us to remotely execute commands, we could execute commands as root since the script is runnign as root.
Execute the following commands to generate exif data that makes bash runable by normal users as root.