This vulnerability was discovered and reported by Mike Haworth. Example code was not provided - the details of the vulnerability were reverse-engineered from the patch submitted to the Mahara project.

https://bugs.launchpad.net/mahara/+bug/1047111

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2239