MG2 Image Gallery version 0.5.1 suffers from cross site scripting flaws.
You can download this advisory from the following link: https://packetstormsecurity.com/files/download/43510/mgXSS.txt
Source: https://packetstormsecurity.com/files/43510/mgXSS.txt.html

