====================================================
OPENCONF CE 3.41 MULTIPLE XSS AND SQLI
====================================================
Aplication: OpenConf CE
Version: 3.41
Critical: High
Impact: Steal admin session and database extraction
Websec Advisory: ws10-06
BACKGROUND
=======================
OpenConf is a peer-review management system that greatly facilitates the submission and review processes for conferences, workshops, and symposia. The software is flexible enough that OpenConf is also used for journals, grants, and books.
DESCRIPTION
=======================
It is possible to use Cross-Site Scripting to steal the admin’s session just by having the admin visit a webpage that’s under the attackers control. Futhermore, user input is sent to the database without being sanatized allowing an attacker to send queries to the database.
VULNERABLE CODE AND FIX
=============================
[0] LINE 22 (SQLi) LINE 25 (XSS):
20: $q = “SELECT * FROM “ . OCC_TABLE_REVIEWER . “ WHERE reviewerid=’”.$_GET[‘rid’].“’”;
21: $r = ocsql_query($q) or err(“Unable to get information “.mysql_errno());
22: $l = mysql_fetch_array($r);
23: print ‘
24:
25:
ID:
’.$_GET[‘rid’].’
LINE 41:
$tq = “SELECT topicname, short FROM “ . OCC_TABLE_REVIEWERTOPIC . “, “ . OCC_TABLE_TOPIC . “ WHERE reviewerid=’”.$_GET[‘rid’].“’ AND “ . OCC_TABLE_REVIEWERTOPIC . “.topicid=” . OCC_TABLE_TOPIC . “.topicid”;
He creado un POC que permite deshabilitar las reglas del firewall que filtran el tráfico entrante ssh/telnet/ftp hacía el GPON y así conectarnos a las diferentes consolas de comandos como súper usuario.
Los ONT Huawei HG8245 y HG8247 (con firmware V1R006C00S100) utilizan un algoritmo débil para generar las llaves WPA, es posible generar estas llaves a partir de la MAC Address de la interfaz WiFi.