Gallery 2 up to 2.0.2 allows remote attackers to spoof their IP address via a modified X-Forwarded-For (X_FORWARDED_FOR) HTTP header, which is checked by Gallery before other more reliable sources of IP address information, such as REMOTE_ADDR.
archives.neohapsis.com/archives/bugtraq/2006-02/0621.html
gallery.menalto.com/gallery_2.0.3_released
secunia.com/advisories/19104
securitytracker.com/id?1015717
www.gulftech.org/?node=research&article_id=00106-03022006
www.vupen.com/english/advisories/2006/0813
exchange.xforce.ibmcloud.com/vulnerabilities/25120