CVE-2016-7146
Medium · 6.1CVSS
6.1
EPSS
1.2%
Published
Nov 10, 2016
CISA due date
—
Cloudanix analysis
A flaw in an older wiki system lets attackers trick users into running harmful scripts simply by clicking a specially made link, which could expose private information or let outsiders take over accounts.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Remote attackers can inject arbitrary JavaScript into the MoinMoin wiki by supplying a malicious page name to the action=fckdialog&dialog=attachment endpoint, which is reflected without proper sanitization and executes in the context of other users.
Why it matters to the business
Attackers may hijack user sessions, steal credentials, or perform actions on behalf of authenticated wiki users, leading to data leakage or unauthorized content changes in collaborative documentation platforms.
How an attack unfolds
An attacker identifies a MoinMoin instance and crafts a URL containing JavaScript in the page parameter for the attachment dialog handler; when a victim visits the link, the script executes in their browser, enabling theft of cookies or other client-side actions. Public exploit code has been available for years.
How to fix it
Upgrade MoinMoin to a version that properly sanitizes page names in the fckdialog attachment handler; if no newer package release is available, apply input validation and output encoding patches around the affected dialog component and restrict or disable the fckdialog feature where possible.
How to confirm the fix worked
Review the source of the attachment dialog handler to confirm page-name values are HTML-escaped before rendering; test by submitting a page name containing a script tag and verifying it is not executed.
Typical attack path
- Locate a reachable MoinMoin wiki instance
- Craft a URL targeting action=fckdialog&dialog=attachment with a malicious page name containing JavaScript
- Deliver the link via email, chat, or another channel to a logged-in user
- Victim loads the URL, triggering script execution in the browser
- Attacker receives exfiltrated data or performs further actions via the injected script
How to detect it
Inspect web server access logs for requests containing the fckdialog attachment action with unusually long or script-containing page parameters; look for repeated hits from the same source IP or referrers that do not match normal wiki navigation.
- action=fckdialog&dialog=attachment
- page=.*<script
- /?action=fckdialog
What your security team should do
- Prioritize upgrade or patch of all MoinMoin instances given the public exploit availability
- Implement web application firewall rules to block requests containing script tags in the page parameter for the affected action
- Monitor for unusual attachment dialog access patterns in web logs
- Educate wiki administrators on disabling unused editor dialogs if patching is delayed
The record
MoinMoin 1.9.8 allows remote attackers to conduct "JavaScript injection" attacks by using the "page creation or crafted URL" approach, related to a "Cross Site Scripting (XSS)" issue affecting the action=fckdialog&dialog=attachment (via page name) component.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | moin | 0 | 1.9.9 |
| PyPI | moin | 1.9.8 | 1.9.9 |
| Debian:7 | moin | 0 | 1.9.4-8+deb7u3 |
| Debian:8 | moin | 0 | 1.9.8-1+deb8u1 |
| Ubuntu:14.04:LTS | moin | 0 | 1.9.7-1ubuntu2.1 |
| Ubuntu:16.04:LTS | moin | 0 | 1.9.8-1ubuntu1.16.04.1 |
| pypi | moin | 1.9.8 | No fix |
Related vulnerabilities
- CVE-2012-6495 Multiple directory traversal vulnerabilities in the (1) twikidraw (action/twikidraw.py)… Also affects moin
- CVE-2012-6081 Multiple unrestricted file upload vulnerabilities in the (1) twikidraw… Also affects moin
- CVE-2008-0782 Directory traversal vulnerability in MoinMoin 1.5.8 and earlier allows remote attackers… Also affects moin
- CVE-2026-96379 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96382 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96368 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96361 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96362 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79