Vulnerabilities > CVE-2005-1634 - Unspecified vulnerability in Jgs-Xa Jgs-Portal

047910
CVSS 4.3 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
PARTIAL
Availability impact
NONE
network
jgs-xa
nessus

Summary

Multiple cross-site scripting (XSS) vulnerabilities in JGS-XA JGS-Portal 3.0.2 and earlier allow remote attackers to inject arbitrary web script or HTML via the (1) anzahl_beitraege parameter to jgs_portal.php, (2) year parameter to jgs_portal_statistik.php, (3) year parameter to jgs_portal_beitraggraf.php, (4) tag parameter to jgs_portal_viewsgraf.php, (5) year parameter to jgs_portal_themengraf.php, (6) year parameter to jgs_portal_mitgraf.php, (7) id parameter to jgs_portal_sponsor.php, or (8) the Accept-Language header to jgs_portal_log.php. NOTE: this issue may stem from the same core problem as CVE-2005-1633.

Vulnerable Configurations

Part Description Count
Application
Jgs-Xa
1

Nessus

NASL familyCGI abuses
NASL idJGSPORTAL_SQL.NASL
descriptionThe remote host is running the JGS-Portal, a web portal written in PHP. The remote version of this software contains an input validation flaw leading to multiple SQL injection and cross-site scripting vulnerabilities. An attacker may exploit these flaws to execute arbitrary SQL commands against the remote database and to cause arbitrary code execution for third-party users.
last seen2020-06-01
modified2020-06-02
plugin id18289
published2005-05-17
reporterCopyright (C) 2005-2018 Josh Zlatin-Amishav
sourcehttps://www.tenable.com/plugins/nessus/18289
titleJGS-Portal for WoltLab Burning Board Multiple Vulnerabilities (SQLi, XSS)
code
#
# This script was written by Josh Zlatin-Amishav <josh at tkos dot co dot il>
#
# This script is released under the GNU GPLv2
#
# Changes by Tenable:
# - Revised plugin title, added CVE (1/13/2009)


include("compat.inc");

if(description)
{
 script_id(18289);
 script_version ("1.17");
 script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/12");

 script_cve_id("CVE-2005-1633", "CVE-2005-1634");
 script_bugtraq_id(13650);

 script_name(english:"JGS-Portal for WoltLab Burning Board Multiple Vulnerabilities (SQLi, XSS)");
 script_summary(english:"JGS-Portal Multiple XSS and SQL injection Vulnerabilities");

 script_set_attribute(attribute:"synopsis", value:
"The remote web application is vulnerable to several flaws." );
 script_set_attribute(attribute:"description", value:
"The remote host is running the JGS-Portal, a web portal written in PHP.

The remote version of this software contains an input validation flaw leading
to multiple SQL injection and cross-site scripting vulnerabilities. An attacker
may exploit these flaws to execute arbitrary SQL commands against the remote
database and to cause arbitrary code execution for third-party users." );
 script_set_attribute(attribute:"solution", value:
"Unknown at this time" );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:H/RL:U/RC:ND");
 script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
 script_set_attribute(attribute:"exploit_available", value:"true");

 script_set_attribute(attribute:"plugin_publication_date", value: "2005/05/17");
 script_set_attribute(attribute:"vuln_publication_date", value: "2005/05/16");
 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);

 script_family(english:"CGI abuses");
 script_copyright(english:"Copyright (C) 2005-2020 Josh Zlatin-Amishav");

 script_dependencies("http_version.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 script_require_keys("www/PHP");
 exit(0);
}

include("http_func.inc");
include("global_settings.inc");
include("http_keepalive.inc");

port = get_http_port(default:80, embedded:TRUE);
if(!get_port_state(port))exit(0);
if ( ! can_host_php(port:port) ) exit(0);

function check(url)
{
 local_var req, res;

 req = http_get(item:url + "/jgs_portal_statistik.php?meinaction=themen&month=1&year=1'", port:port);
 res = http_keepalive_send_recv(port:port, data:req);
 if ( res == NULL ) exit(0);

 if (("SQL-DATABASE ERROR" >< res ) && ("SELECT starttime FROM bb1_threads WHERE FROM_UNIXTIME" >< res ))
 {
     security_hole(port);
     set_kb_item(name: 'www/'+port+'/SQLInjection', value: TRUE);
     exit(0);
 }
}

foreach dir ( make_list (cgi_dirs()) )
{
  check(url:dir);
}