Executive Summary



This Alert is flagged as TOP 25 Common Weakness Enumeration from CWE/SANS. For more information, you can read this.
Summary
Title GoAhead Webserver multiple stored XSS vulnerabilities
Informations
Name VU#384427 First vendor Publication 2011-10-10
Vendor VU-CERT Last vendor Modification 2011-10-10
Severity (Vendor) N/A Revision M

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:M/Au:N/C:N/I:P/A:N)
Cvss Base Score 4.3 Attack Range Network
Cvss Impact Score 2.9 Attack Complexity Medium
Cvss Expoit Score 8.6 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Vulnerability Note VU#384427

GoAhead Webserver multiple stored XSS vulnerabilities

Overview

GoAhead Webserver 2.18 and possibly previous or newer versions, are vulnerable to multiple stored and reflective cross site scripting (XSS) vulnerabilities.

I. Description

GoAhead Webserver software fails to sanitize POST requests sent to the multiple functions. As a result, stored and reflective cross site scripting (XSS) attacks can be conducted. An attacker can inject javascript code that will be run each time the specified webpage is accessed by inserting javascript code in the affected parameter.

According to the reporter the following webpages and parameters are affected by stored and reflective XSS vulnerabilities:

  • Stored XSS in group parameter of addgroup.asp.
    POST /goform/AddGroup HTTP/1.1
    group=<script>alert(1337)</script>&privilege=4&method=1&enabled=on&ok=OK

    Results: Reflected XSS displayed in addgroup.asp, stored XSS in: adduser.asp, addlimit.asp, delgroup.asp.
  • Stored XSS in url parameter of addlimit.asp
    POST /goform/AddAccessLimit HTTP/1.1
    url=<script>alert(1337)</script>&group=test&method=3&ok=OK

    Results: Stored when user requests dellimit.asp.
  • Stored XSS in adduser.asp, User ID parameter.
    Note: for this to work, there must be at least one valid group created in
    addgroup.asp. In this example, you can swap out the group=<script>alert(1337)
    for whichever group name you added. password= and passconf= can also be
    modified to whichever password you want the new user to have.

    POST /goform/AddUser HTTP/1.1
    user=%3Cscript%3Ealert%281337%29%3C%2Fscript%3E&group=%3Cscript%3Ealert%281337%2
    9%3C%2Fscript%3E&enabled=on&password=test&passconf=test&ok=OK

    Result: Reflected in reply, stored in: deluser.asp,dspuser.asp.

II. Impact

An attacker with access to the GoAhead Webserver can conduct a cross site scripting attack, which could be used to result in information leakage, privilege escalation, and/or denial of service.

III. Solution

We are currently unaware of a practical solution to this problem.

Restrict access

As a general good security practice, only allow connections from trusted hosts and networks. Note that restricting access does not prevent XSS or CSRF attacks since the attack comes as an HTTP request from a legitimate user's host. Restricting access would prevent an attacker from accessing a GoAhead Webserver using stolen credentials from a blocked network location.

Vendor Information


The reporter was unable to confirm if any previous or newer versions are vulnerable to these stored cross site scripting (XSS) vulnerabilities.
VendorStatusDate NotifiedDate Updated
GoAhead Software, Inc.Affected2011-10-07

References


Credit

Thanks to Silent Dream for reporting this vulnerability.

This document was written by Michael Orlando.

Other Information

Date Public:2011-10-10
Date First Published:2011-10-10
Date Last Updated:2011-10-10
CERT Advisory: 
CVE-ID(s): 
NVD-ID(s): 
US-CERT Technical Alerts: 
Severity Metric:0.49
Document Revision:20

Original Source

Url : http://www.kb.cert.org/vuls/id/384427

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-79 Failure to Preserve Web Page Structure ('Cross-site Scripting') (CWE/SANS Top 25)

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 1

OpenVAS Exploits

Date Description
2011-11-08 Name : GoAhead Webserver Multiple Stored Cross Site Scripting Vulnerabilities
File : nvt/gb_goahead_webserver_mult_stored_xss_vuln.nasl

Open Source Vulnerability Database (OSVDB)

Id Description
76847 GoAhead Webserver adduser.asp Multiple Parameter XSS

GoAhead Webserver contains a flaw that allows a remote cross-site scripting (XSS) attack. This flaw exists because the application does not validate the 'User ID' or 'group' parameters upon submission to the adduser.asp script. This may allow a user to create a specially crafted URL that would execute arbitrary script code in a user's browser within the trust relationship between their browser and the server.
76846 GoAhead Webserver addlimit.asp url Parameter XSS

GoAhead Webserver contains a flaw that allows a remote cross-site scripting (XSS) attack. This flaw exists because the application does not validate the 'url' parameter upon submission to the addlimit.asp script. This may allow a user to create a specially crafted URL that would execute arbitrary script code in a user's browser within the trust relationship between their browser and the server.
76845 GoAhead Webserver addgroup.asp group Parameter XSS

GoAhead Webserver contains a flaw that allows a remote cross-site scripting (XSS) attack. This flaw exists because the application does not validate the 'group' parameter upon submission to the addgroup.asp script. This may allow a user to create a specially crafted URL that would execute arbitrary script code in a user's browser within the trust relationship between their browser and the server.