ID CVE-2012-6495
Summary Multiple directory traversal vulnerabilities in the (1) twikidraw (action/twikidraw.py) and (2) anywikidraw (action/anywikidraw.py) actions in MoinMoin before 1.9.6 allow remote authenticated users with write permissions to overwrite arbitrary files via unspecified vectors. NOTE: this can be leveraged with CVE-2012-6081 to execute arbitrary code.
References
Vulnerable Configurations
  • moinmo MoinMoin 1.9.5
    cpe:2.3:a:moinmo:moinmoin:1.9.5
  • moinmo MoinMoin 1.9.3
    cpe:2.3:a:moinmo:moinmoin:1.9.3
  • moinmo MoinMoin 1.9.2
    cpe:2.3:a:moinmo:moinmoin:1.9.2
  • moinmo MoinMoin 1.9.0
    cpe:2.3:a:moinmo:moinmoin:1.9.0
  • moinmo MoinMoin 1.9.1
    cpe:2.3:a:moinmo:moinmoin:1.9.1
  • moinmo MoinMoin 1.9.4
    cpe:2.3:a:moinmo:moinmoin:1.9.4
  • moinmo MoinMoin 1.8.7
    cpe:2.3:a:moinmo:moinmoin:1.8.7
  • moinmo MoinMoin 1.8.8
    cpe:2.3:a:moinmo:moinmoin:1.8.8
  • moinmo MoinMoin 1.8.6
    cpe:2.3:a:moinmo:moinmoin:1.8.6
  • moinmo MoinMoin 1.8.4
    cpe:2.3:a:moinmo:moinmoin:1.8.4
  • moinmo MoinMoin 1.8.3
    cpe:2.3:a:moinmo:moinmoin:1.8.3
  • moinmo MoinMoin 1.8.2
    cpe:2.3:a:moinmo:moinmoin:1.8.2
  • moinmo MoinMoin 1.8.1
    cpe:2.3:a:moinmo:moinmoin:1.8.1
  • moinmo MoinMoin 1.8.0
    cpe:2.3:a:moinmo:moinmoin:1.8.0
  • moinmo MoinMoin 1.7.0 beta1
    cpe:2.3:a:moinmo:moinmoin:1.7.0:beta1
  • moinmo MoinMoin 1.7.0
    cpe:2.3:a:moinmo:moinmoin:1.7.0
  • moinmo MoinMoin 1.7.0 release candidate 1
    cpe:2.3:a:moinmo:moinmoin:1.7.0:rc1
  • moinmo MoinMoin 1.7.0 beta2
    cpe:2.3:a:moinmo:moinmoin:1.7.0:beta2
  • moinmo MoinMoin 1.7.0 release candidate 3
    cpe:2.3:a:moinmo:moinmoin:1.7.0:rc3
  • moinmo MoinMoin 1.7.0 release candidate 2
    cpe:2.3:a:moinmo:moinmoin:1.7.0:rc2
  • moinmo MoinMoin 1.7.2
    cpe:2.3:a:moinmo:moinmoin:1.7.2
  • moinmo MoinMoin 1.7.1
    cpe:2.3:a:moinmo:moinmoin:1.7.1
  • moinmo MoinMoin 1.7.3
    cpe:2.3:a:moinmo:moinmoin:1.7.3
  • moinmo MoinMoin 1.6.2
    cpe:2.3:a:moinmo:moinmoin:1.6.2
  • moinmo MoinMoin 1.6.1
    cpe:2.3:a:moinmo:moinmoin:1.6.1
  • moinmo MoinMoin 1.6.0 release candidate 2
    cpe:2.3:a:moinmo:moinmoin:1.6.0:rc2
  • moinmo MoinMoin 1.6.4
    cpe:2.3:a:moinmo:moinmoin:1.6.4
  • moinmo MoinMoin 1.6.3
    cpe:2.3:a:moinmo:moinmoin:1.6.3
  • moinmo MoinMoin 1.6.0
    cpe:2.3:a:moinmo:moinmoin:1.6.0
  • moinmo MoinMoin 1.6.0 beta2
    cpe:2.3:a:moinmo:moinmoin:1.6.0:beta2
  • moinmo MoinMoin 1.6.0 beta1
    cpe:2.3:a:moinmo:moinmoin:1.6.0:beta1
  • moinmo MoinMoin 1.6.0 release candidate 1
    cpe:2.3:a:moinmo:moinmoin:1.6.0:rc1
  • moinmo MoinMoin 1.5.1
    cpe:2.3:a:moinmo:moinmoin:1.5.1
  • moinmo MoinMoin 1.5.2
    cpe:2.3:a:moinmo:moinmoin:1.5.2
  • moinmo MoinMoin 1.5.0
    cpe:2.3:a:moinmo:moinmoin:1.5.0
  • moinmo MoinMoin 1.5.0 release candidate 1
    cpe:2.3:a:moinmo:moinmoin:1.5.0:rc1
  • moinmo MoinMoin 1.5.0 beta6
    cpe:2.3:a:moinmo:moinmoin:1.5.0:beta6
  • moinmo MoinMoin 1.5.0 beta5
    cpe:2.3:a:moinmo:moinmoin:1.5.0:beta5
  • moinmo MoinMoin 1.5.0 beta4
    cpe:2.3:a:moinmo:moinmoin:1.5.0:beta4
  • moinmo MoinMoin 1.5.0 beta3
    cpe:2.3:a:moinmo:moinmoin:1.5.0:beta3
  • moinmo MoinMoin 1.5.0 beta2
    cpe:2.3:a:moinmo:moinmoin:1.5.0:beta2
  • moinmo MoinMoin 1.5.0 beta1
    cpe:2.3:a:moinmo:moinmoin:1.5.0:beta1
  • MoinMoin 1.5.5a
    cpe:2.3:a:moinmo:moinmoin:1.5.5:a
  • moinmo MoinMoin 1.5.3 release candidate 1
    cpe:2.3:a:moinmo:moinmoin:1.5.3:rc1
  • moinmo MoinMoin 1.5.3 release candidate 2
    cpe:2.3:a:moinmo:moinmoin:1.5.3:rc2
  • moinmo MoinMoin 1.5.3
    cpe:2.3:a:moinmo:moinmoin:1.5.3
  • moinmo MoinMoin 1.5.4
    cpe:2.3:a:moinmo:moinmoin:1.5.4
  • moinmo MoinMoin 1.5.5 release candidate 1
    cpe:2.3:a:moinmo:moinmoin:1.5.5:rc1
  • moinmo MoinMoin 1.5.5
    cpe:2.3:a:moinmo:moinmoin:1.5.5
  • moinmo MoinMoin 1.5.5a
    cpe:2.3:a:moinmo:moinmoin:1.5.5a
  • moinmo MoinMoin 1.5.6
    cpe:2.3:a:moinmo:moinmoin:1.5.6
  • moinmo MoinMoin 1.5.7
    cpe:2.3:a:moinmo:moinmoin:1.5.7
  • moinmo MoinMoin 1.5.8
    cpe:2.3:a:moinmo:moinmoin:1.5.8
  • moinmo MoinMoin 1.4
    cpe:2.3:a:moinmo:moinmoin:1.4
  • moinmo MoinMoin 1.3.5 release candidate 1
    cpe:2.3:a:moinmo:moinmoin:1.3.5:rc1
  • moinmo MoinMoin 1.3.4
    cpe:2.3:a:moinmo:moinmoin:1.3.4
  • moinmo MoinMoin 1.3.3
    cpe:2.3:a:moinmo:moinmoin:1.3.3
  • moinmo MoinMoin 1.3.2
    cpe:2.3:a:moinmo:moinmoin:1.3.2
  • moinmo MoinMoin 1.3.5
    cpe:2.3:a:moinmo:moinmoin:1.3.5
  • moinmo MoinMoin 1.3.1
    cpe:2.3:a:moinmo:moinmoin:1.3.1
  • moinmo MoinMoin 1.3.0
    cpe:2.3:a:moinmo:moinmoin:1.3.0
  • moinmo MoinMoin 1.2.2
    cpe:2.3:a:moinmo:moinmoin:1.2.2
  • moinmo MoinMoin 1.2.1
    cpe:2.3:a:moinmo:moinmoin:1.2.1
  • moinmo MoinMoin 1.2
    cpe:2.3:a:moinmo:moinmoin:1.2
  • moinmo MoinMoin 1.2.4
    cpe:2.3:a:moinmo:moinmoin:1.2.4
  • moinmo MoinMoin 1.2.3
    cpe:2.3:a:moinmo:moinmoin:1.2.3
  • moinmo MoinMoin 1.1
    cpe:2.3:a:moinmo:moinmoin:1.1
  • moinmo MoinMoin 1.0
    cpe:2.3:a:moinmo:moinmoin:1.0
  • moinmo MoinMoin 0.7
    cpe:2.3:a:moinmo:moinmoin:0.7
  • moinmo MoinMoin 0.8
    cpe:2.3:a:moinmo:moinmoin:0.8
  • moinmo MoinMoin 0.5
    cpe:2.3:a:moinmo:moinmoin:0.5
  • moinmo MoinMoin 0.6
    cpe:2.3:a:moinmo:moinmoin:0.6
  • moinmo MoinMoin 0.11
    cpe:2.3:a:moinmo:moinmoin:0.11
  • moinmo MoinMoin 0.9
    cpe:2.3:a:moinmo:moinmoin:0.9
  • moinmo MoinMoin 0.10
    cpe:2.3:a:moinmo:moinmoin:0.10
  • moinmo MoinMoin 0.3
    cpe:2.3:a:moinmo:moinmoin:0.3
  • moinmo MoinMoin 0.4
    cpe:2.3:a:moinmo:moinmoin:0.4
  • moinmo MoinMoin 0.1
    cpe:2.3:a:moinmo:moinmoin:0.1
  • moinmo MoinMoin 0.2
    cpe:2.3:a:moinmo:moinmoin:0.2
CVSS
Base: 6.0 (as of 03-01-2013 - 12:13)
Impact:
Exploitability:
CWE CWE-22
CAPEC
  • Relative Path Traversal
    An attacker exploits a weakness in input validation on the target by supplying a specially constructed path utilizing dot and slash characters for the purpose of obtaining access to arbitrary files or resources. An attacker modifies a known path on the target in order to reach material that is not available through intended channels. These attacks normally involve adding additional path separators (/ or \) and/or dots (.), or encodings thereof, in various combinations in order to reach parent directories or entirely separate trees of the target's directory structure.
  • Directory Traversal
    An attacker with access to file system resources, either directly or via application logic, will use various file path specification or navigation mechanisms such as ".." in path strings and absolute paths to extend their range of access to inappropriate areas of the file system. The attacker attempts to either explore the file system for recon purposes or access directories and files that are intended to be restricted from their access. Exploring the file system can be achieved through constructing paths presented to directory listing programs, such as "ls" and 'dir', or through specially crafted programs that attempt to explore the file system. The attacker engaging in this type of activity is searching for information that can be used later in a more exploitive attack. Access to restricted directories or files can be achieved through modification of path references utilized by system applications.
  • File System Function Injection, Content Based
    An attack of this type exploits the host's trust in executing remote content including binary files. The files are poisoned with a malicious payload (targeting the file systems accessible by the target software) by the attacker and may be passed through standard channels such as via email, and standard web content like PDF and multimedia files. The attacker exploits known vulnerabilities or handling routines in the target processes. Vulnerabilities of this type have been found in a wide variety of commercial applications from Microsoft Office to Adobe Acrobat and Apple Safari web browser. When the attacker knows the standard handling routines and can identify vulnerabilities and entry points they can be exploited by otherwise seemingly normal content. Once the attack is executed, the attackers' program can access relative directories such as C:\Program Files or other standard system directories to launch further attacks. In a worst case scenario, these programs are combined with other propagation logic and work as a virus.
  • Using Slashes and URL Encoding Combined to Bypass Validation Logic
    This attack targets the encoding of the URL combined with the encoding of the slash characters. An attacker can take advantage of the multiple way of encoding an URL and abuse the interpretation of the URL. An URL may contain special character that need special syntax handling in order to be interpreted. Special characters are represented using a percentage character followed by two digits representing the octet code of the original character (%HEX-CODE). For instance US-ASCII space character would be represented with %20. This is often referred as escaped ending or percent-encoding. Since the server decodes the URL from the requests, it may restrict the access to some URL paths by validating and filtering out the URL requests it received. An attacker will try to craft an URL with a sequence of special characters which once interpreted by the server will be equivalent to a forbidden URL. It can be difficult to protect against this attack since the URL can contain other format of encoding such as UTF-8 encoding, Unicode-encoding, etc.
  • Manipulating Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
  • Using Escaped Slashes in Alternate Encoding
    This attack targets the use of the backslash in alternate encoding. An attacker can provide a backslash as a leading character and causes a parser to believe that the next character is special. This is called an escape. By using that trick, the attacker tries to exploit alternate ways to encode the same character which leads to filter problems and opens avenues to attack.
  • Using Slashes in Alternate Encoding
    This attack targets the encoding of the Slash characters. An attacker would try to exploit common filtering problems related to the use of the slashes characters to gain access to resources on the target host. Directory-driven systems, such as file systems and databases, typically use the slash character to indicate traversal between directories or other container components. For murky historical reasons, PCs (and, as a result, Microsoft OSs) choose to use a backslash, whereas the UNIX world typically makes use of the forward slash. The schizophrenic result is that many MS-based systems are required to understand both forms of the slash. This gives the attacker many opportunities to discover and abuse a number of common filtering problems. The goal of this pattern is to discover server software that only applies filters to one version, but not the other.
Access
VectorComplexityAuthentication
NETWORK MEDIUM SINGLE_INSTANCE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
exploit-db via4
  • description MoinMoin twikidraw Action Traversal File Upload. CVE-2012-6081,CVE-2012-6495. Remote exploit for linux platform
    id EDB-ID:26422
    last seen 2016-02-03
    modified 2013-06-24
    published 2013-06-24
    reporter metasploit
    source https://www.exploit-db.com/download/26422/
    title MoinMoin twikidraw Action Traversal File Upload
  • description MoinMoin - Arbitrary Command Execution. CVE-2012-6081,CVE-2012-6495. Webapps exploit for php platform
    file exploits/php/webapps/25304.py
    id EDB-ID:25304
    last seen 2016-02-03
    modified 2013-05-08
    platform php
    port
    published 2013-05-08
    reporter HTP
    source https://www.exploit-db.com/download/25304/
    title MoinMoin - Arbitrary Command Execution
    type webapps
nessus via4
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-2593.NASL
    description It was discovered that missing input validation in the twikidraw and anywikidraw actions can result in the execution of arbitrary code. This security issue is being actively exploited. This update also addresses path traversal in AttachFile.
    last seen 2019-02-21
    modified 2019-02-07
    plugin id 63356
    published 2012-12-31
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=63356
    title Debian DSA-2593-1 : moin - several vulnerabilities
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201309-14.NASL
    description The remote host is affected by the vulnerability described in GLSA-201309-14 (MoinMoin: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in MoinMoin. Please review the CVE identifiers referenced below for details. Impact : A remote attacker may be able to execute arbitrary code with the privileges of the process, overwrite arbitrary files, or conduct Cross-Site Scripting (XSS) attacks. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2019-02-07
    plugin id 70110
    published 2013-09-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=70110
    title GLSA-201309-14 : MoinMoin: Multiple vulnerabilities
  • NASL family CGI abuses
    NASL id MOINMOIN_TWIKIDRAW_CODE_EXEC.NASL
    description The MoinMoin install hosted on the remote web server fails to properly sanitize user-supplied input in the twikidraw (action/twikidraw.py) action. A remote, unauthenticated attacker could utilize a specially crafted request using directory traversal style characters to upload a file containing arbitrary code to the remote host. An attacker could then execute the code with the privileges of the user that runs the MoinMoin process. Successful exploitation requires that the MoinMoin plugin directory has write permission set for the MoinMoin server user. Note that the 'anywikidraw' action is reportedly also affected by the directory traversal and code execution vulnerabilities. The application is also reportedly affected by an additional directory traversal vulnerability in the action/AttachFile.py script (CVE-2012-6080) as well as a cross-site scripting (XSS) vulnerability when creating an rss link (CVE-2012-6082). Nessus has not, however, tested for these additional issues.
    last seen 2019-02-21
    modified 2018-06-13
    plugin id 63638
    published 2013-01-21
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=63638
    title MoinMoin twikidraw.py Traversal File Upload Arbitrary File Overwrite
refmap via4
confirm
debian DSA-2593
misc https://bugs.launchpad.net/ubuntu/+source/moin/+bug/1094599
mlist
  • [oss-security] 20121229 CVE request: MoinMoin Wiki (remote code execution vulnerability)
  • [oss-security] 20121229 Re: CVE request: MoinMoin Wiki (remote code execution vulnerability)
secunia 51696
ubuntu USN-1680-1
the hacker news via4
id THN:513C185A1CC3F29D2D37E30BC34E5D30
last seen 2017-01-08
modified 2013-01-11
published 2013-01-09
reporter Mohit Kumar
source http://thehackernews.com/2013/01/official-debian-and-python-wiki-servers.html
title Official Debian and Python Wiki Servers Compromised
Last major update 07-01-2013 - 00:00
Published 02-01-2013 - 20:55
Back to Top