Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconRegister/compromise user account
-
DeliveryAuthenticate to obtain session cookie
-
ExploitPOST crafted id_fiche payload to /api/entries
-
InstallTrigger SQL injection in EntryManager.php line 704
-
C2Execute time-based blind SQLi with SLEEP()
-
ExecuteAutomate extraction with sqlmap
-
ImpactDump wiki_users table for credentials
-
Step 8Escalate to admin privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access as any user with acl:{+} permissions, which typically includes all registered users on default YesWiki installations. The target YesWiki instance must have the bazar module enabled (installed by default) with at least one form (id_typeannonce) created by administrators. The /api/entries/{formId} REST API endpoint must be accessible to authenticated users-no special configuration or non-default settings required. The vulnerability affects default configurations when POST requests to the API endpoint are processed. Exploitation does NOT require: administrative privileges, specific PHP version, non-default database configuration, or user interaction beyond the attacker's own authenticated session. Limiting factor: attacker must possess or create valid authentication credentials, which is trivial on publicly accessible wikis with open registration enabled but requires social engineering or credential compromise on private installations with restricted user enrollment. |
| Impact | CVSS 8.8 (High) reflects network-accessible, low-complexity attack requiring only low-privilege authentication with no user interaction, yielding high impact to confidentiality, integrity, and availability. Real-world risk is elevated because: (1) Authentication barrier is minimal-any registered user account suffices, not admin privileges. (2) GitHub security advisory includes working proof-of-concept with Docker reproduction steps demonstrating both time-based blind SQLi (SLEEP injection with measured 3-second delays) and error-based exfiltration (extractvalue() returning MySQL version). (3) sqlmap automation confirmed at technique levels BET (Boolean/Error/Time-based). (4) Attack surface includes REST API endpoints commonly exposed to authenticated users in wiki deployments. (5) Impact extends beyond data exfiltration to potential privilege escalation via user credential dumping or direct database manipulation. However, risk is moderated by authentication prerequisite and lack of evidence for active exploitation-no CISA KEV listing and EPSS data unavailable at time of analysis. This is a genuine priority for YesWiki deployments with untrusted authenticated users (e.g., public wikis with open registration) but lower urgency for private installations with trusted user bases. Organizations should prioritize patching if running versions ≤4.6.0 with exposed API endpoints. |
| Exploit ScenarioDerived | An attacker registers a standard user account on a public YesWiki instance (or compromises existing low-privilege credentials). They authenticate via the web interface to obtain a valid wikini_session cookie. The attacker then crafts a POST request to /api/entries/1 (assuming bazar form ID 1 exists) with payload id_fiche=' OR SLEEP(5) OR ' and observes a 5-second response delay, confirming SQL injection. They escalate to automated extraction using sqlmap with the --technique=BET flag, dumping the wiki_users table to harvest password hashes. With admin credentials recovered via hash cracking or direct database manipulation (UPDATE wiki_users SET password=...), the attacker gains full administrative control. Publicly available proof-of-concept code exists in the GitHub security advisory including Docker reproduction environment and working curl commands for both time-based and error-based injection techniques. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 07, 2026
Authenticated SQL injection in YesWiki bazar module allows low-privileged users to execute arbitrary SQL queries against the MySQL backend. The vulnerability exists in EntryManager.php line 704 where POST parameter 'id_fiche' is concatenated directly into a SELECT query without sanitization. Any authenticated user can exploit this via the /api/entries/{formId} endpoint to dump database contents, extract credentials, or manipulate data. Time-based blind SQLi confirmed via SLEEP() injection with 3-second delays, and error-based extraction confirmed via extractvalue() technique. Patched in version 4.6.1. EPSS data not available; no CISA KEV listing identified at time of analysis.
RemediationAI
Upgrade to YesWiki version 4.6.1 immediately, released at https://github.com/YesWiki/yeswiki/releases/tag/v4.6.1 which patches the SQL injection via parameterized queries or proper input escaping in EntryManager.php. For Composer-managed installations, update the yeswiki/yeswiki package to >=4.6.1. If immediate patching is not feasible, implement compensating controls: (1) Restrict access to /api/entries/* endpoints via web application firewall rules to trusted IP ranges only, though this reduces wiki collaboration functionality. (2) Disable the bazar module entirely if form-based content management is not required-this breaks form submission features but eliminates the attack surface. (3) Implement database-level read-only permissions for the YesWiki database user to prevent data manipulation, though this may cause application errors during legitimate write operations and does not prevent data exfiltration. (4) Deploy intrusion detection signatures monitoring for SQL injection patterns in id_fiche POST parameters (regex: SLEEP\(|extractvalue\(|UNION SELECT) with alert thresholds, accepting false positives from legitimate entry IDs. Note that none of these workarounds fully mitigate the vulnerability-patching to 4.6.1 is the only complete solution. Refer to vendor advisory https://github.com/YesWiki/yeswiki/security/advisories/GHSA-f58v-p6j9-24c2 for technical details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
YesWiki is a PHP-based wiki platform using MySQL/MariaDB for data persistence. The bazar module provides form-based content management through the EntryManager service class. The vulnerability is a classic CWE-89 SQL injection flaw where user-controlled input from $_POST['id_fiche'] flows directly into mysqli_query() via dbService->loadSingle() without parameterized queries or escaping. The codebase includes an escape() method that is NOT invoked on this code path. The affected SQL query template is: SELECT MIN(time) as firsttime FROM wiki_pages WHERE tag='[UNSANITIZED_INPUT]'. PHP's mysqli extension is used but without prepared statements. The /api/entries/{formId} REST endpoint enforces only minimal ACL (acl:{+} = any authenticated user) before passing POST data to EntryManager::formatDataBeforeSave(). CPE identifies yeswiki:yeswiki product line; all versions prior to 4.6.1 are affected.
Know when Yeswiki gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
YesWiki is a wiki system written in PHP. Prior to version 4.6.1, YesWiki bazar module contains a SQL injection vulnerability in tools/bazar/services/EntryManager.php at line 704. The $data['id_fiche'] value (sourced from $_POST['id_fiche']) is concatenated directly into a raw SQL query without any sanitization or parameterization. This issue has been patched in version 4.6.1.
Executive ViewAI
CVE-2026-41143 is a high-severity SQL injection vulnerability in YesWiki's bazar module that allows authenticated users to execute arbitrary database queries, potentially exposing credentials and sensitive data stored in the MySQL backend. Organizations running YesWiki versions prior to 4.6.1 should prioritize immediate patching, as the vulnerability affects data confidentiality and integrity with moderate attack complexity.
Vendor-released patch: YesWiki version 4.6.1. Until patching is completed, implement network-layer access controls to restrict access to the /api/entries/ endpoint; enforce principle of least privilege by limiting authenticated user accounts with bazar module access; enable comprehensive SQL query logging and monitor for SLEEP() or extractvalue() patterns; consider temporarily disabling the bazar module API if it is not operationally critical.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
YesWiki is a wiki system written in PHP. Rated high severity (CVSS 8.6), this vulnerability is remotely exploitable, no
YesWiki is a wiki system written in PHP. Rated critical severity (CVSS 10.0), this vulnerability is remotely exploitable
Remote code execution in YesWiki prior to 4.6.6 allows unauthenticated attackers to inject arbitrary PHP via the Bazar C
YesWiki is a wiki system written in PHP. Rated critical severity (CVSS 9.1), this vulnerability is remotely exploitable,
YesWiki is a wiki system written in PHP. Rated high severity (CVSS 7.6), this vulnerability is remotely exploitable, no
Unauthenticated server-side request forgery in YesWiki before 4.7.0 lets any remote visitor make the wiki server issue H
YesWiki is a wiki system written in PHP. Rated medium severity (CVSS 5.8), this vulnerability is remotely exploitable, n
YesWiki is a wiki system written in PHP. Rated medium severity (CVSS 6.3), this vulnerability is remotely exploitable, n
Cross Site Scripting vulnerability in YesWiki v.4.54 allows a remote attacker to execute arbitrary code via a crafted pa
YesWiki version <= cercopitheque beta 1 contains a PHP Object Injection vulnerability in Unserialising user entered para
Authorization bypass in YesWiki before 4.6.7 lets unauthenticated remote attackers call admin-only API routes when the i
Unauthenticated attackers can delete or overwrite federated entries in YesWiki instances before 4.6.7 that have Activity
EUVD-2026-28312
GHSA-f58v-p6j9-24c2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB