Skip to main content
High November 26, 2009

OPENCONF CE 3.41 MULTIPLE XSS AND SQL

OpenConf CE 3.41 contains multiple stored and reflected cross-site scripting vulnerabilities and an SQL injection flaw in the conference chair interface, enabling session theft and direct database extraction.

CVSS Score

8.8 / 10.0

Severity

High

CVSS Vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Advisory

ApplicationOpenConf CE
Version3.41
ImpactSession theft and database extraction
Websec AdvisoryWS10-06

Background

OpenConf is a peer-review management system used by conferences, workshops, symposia, and for journals, grants, and books.

Description

Stored Cross-Site Scripting lets an attacker steal an administrator's session merely by having them visit a controlled page. User input also reaches the database without sanitization, enabling SQL injection.

Exploit / Proof of Concept

  • /openconf/chair/show_reviewer.php?rid=1' and '<script>alert(0)</script>'='<script>alert(document.cookie)</script>
  • /openconf/chair/list_scores.php?s="><script>alert(0)</script>
  • /openconf/chair/show_paper.php?pid=<script>alert(0)</script>

Vulnerable Code and Fix

File: openconf/chair/show_reviewer.php

// Line 20 (SQL injection)
$q = "SELECT * FROM " . OCC_TABLE_REVIEWER . " WHERE reviewerid='".$_GET['rid']."'";
// Fix
$q = "SELECT * FROM " . OCC_TABLE_REVIEWER . " WHERE reviewerid='".safeSQLstr($_GET['rid'])."'";

// Line 25 (reflected XSS)
print '<tr><td>ID:</td><td>'.$_GET['rid'].'</td></tr>';
// Fix
print '<tr><td>ID:</td><td>'.safeHTMLstr($_GET['rid']).'</td></tr>';

The same pattern (safeSQLstr / safeHTMLstr wrappers on $_GET values) applies to list_scores.php (s parameter) and show_paper.php (pid parameter).

Workaround

  • Do not browse untrusted sites while logged in as an OpenConf admin or chair.
  • Apply the sanitization fixes above until an upstream patch is released.

Remediation

Apply the patches documented in the advisory (safeSQLstr / safeHTMLstr on the affected parameters).

Share this advisory:

Related Security Advisories

Stay informed about other recent vulnerabilities and security advisories

Critical December 18, 2014

Command Execution and Backdoor in Zhone GPON-2520

This post will describe a backdoor account found in the Zhone GPON-2520 and will provide a PoC which can be used to disable the firewall filtration rules in order to allow access to services such as ssh, telnet and ftp.

Severity:
CVSS: 9.8
View advisory
High May 22, 2014

Huawei HG8245 / HG8247 WPA Generator

Huawei HG8245 & HG8247 ONT (firmware version V1R006C00S100) rely on a weak algorithm to calculate the WPA keys, keys can be predicted easily using the WiFi's MAC Address (BSSID).

Severity:
CVSS: 7.4
View advisory
High December 19, 2013

Arbitrary Command Execution in Alcatel-Lucent I-240W-Q

The Alcatel-Lucent I-240W-Q ONT's Diagnostics page does not filter shell metacharacters in the IP address field, allowing any authenticated administrator to execute arbitrary commands as root and fully compromise the device.

Severity:
CVSS: 8.0
View advisory