============================================================================ Vulnerable Software: PmOS - Pm Okuma Sistemi [plugin for Seditio CMS]. http://seditio-eklenti.com/datas/users/1-pmoku.rar (MD5 SUM: 88235c2b4b0613bff87545d2d887f042 *1-pmoku.rar) http://seditio-eklenti.com/seditio-pm-okuma-eklentisi-d46.html ============================================================================ About Software: PmOS - Pm Okuma Sistemi [plugin for Seditio CMS] gives ability to administrators to read anothers PM's (Private messages) ============================================================================ Tested: With: Seditio 165 *php.ini MAGIC_QUOTES_GPC OFF* Safe mode off /* OS: Windows XP SP2 (32 bit) Apache: 2.2.21.0 PHP Version: 5.2.17.17 mysql> select version() -> ; +-----------+ | version() | +-----------+ | 5.5.21 | +-----------+ */ ============================================================================ Vuln Desc: Due Insufficent sanitization this plugin is prone Cross Site Scripting Vulnerability(Persistent Cross Site Scripting vuln) ============================================================================ No sanitization when fetching data from database. And thanks to Seditio cms again! It stores private message body in database without any sanitization: =========================================================================== mysql> select * from sed_pm \G *************************** 1. row *************************** pm_id: 6 pm_state: 0 pm_date: 1334009749 pm_fromuserid: 1 pm_fromuser: admin pm_touserid: 1 pm_title: <script>alert(1);</script> pm_text: 1 row in set (0.00 sec) mysql> =========================================================================== Due trust to this issuse pmoku plugin is vulnerable to XSS. Vulnerable code section(From bottom: $pm_text = $row['pm_text']; will become unsanitized) //plugins/pmoku/pmoku.admin.php ----------------------------------------Snip ------------------------------------ $sql = sed_sql_query("SELECT * FROM sed_pm ORDER by pm_date DESC LIMIT 0,50"); $plugin_body .= "
".$L['Delete']." | "; $plugin_body .= "Tarih | "; $plugin_body .= "Gцnderen | "; $plugin_body .= "Konu | "; $plugin_body .= "Mesaj | "; $plugin_body .= "Alan | "; $plugin_body .= "