CyberRota Analysis
AI-GeneratedYesWiki versions 4.2.0 to before 4.6.6 are vulnerable to SQL injection through the ApiController::deletePage() method, allowing low-privilege authenticated users to execute arbitrary SQL queries against the database. This vulnerability can lead to unauthorized data exfiltration and manipulation, posing a significant risk to the integrity and confidentiality of the database. Organizations using affected versions should prioritize patching to version 4.6.6 or later to mitigate this high-severity risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
YesWiki is a wiki system written in PHP. From version 4.2.0 to before version 4.6.6, ApiController::deletePage() interpolates a page tag retrieved from the database into a DELETE FROM …_links WHERE to_tag = '$tag' query without escaping. The page tag is attacker-controlled — the POST /api/pages/{tag} API accepts arbitrary URL-encoded values, including single quotes, and stores them. A low-privilege authenticated user can therefore create a page whose tag is a SQL fragment, make the page non-orphaned via the standard {{include page="…"}} link mechanism, and then invoke the delete endpoint to execute arbitrary SQL inside the wiki database - including time-based blind data exfiltration from any table. This issue has been patched in version 4.6.6.