{"id":"CVE-2026-52775","aliases":["CVE-2026-52775","GHSA-4pf7-cc4r-g63h"],"related":[],"kind":"vulnerability","state":"published","title":"YesWiki Authenticated SQL Injection in ReactionManager","summary":"YesWiki is a wiki system written in PHP. Prior to version 4.6.6, YesWiki through the latest development branch contains a SQL injection vulnerability in ReactionManager::deleteUserReaction() that allows any authenticated user to inject arbitrary SQL via the {idreaction} and {id} URL path parameters. The parameters are concatenated directly into a SQL LIKE clause without escaping or parameterization. This issue has been patched in version 4.6.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"YesWiki is a wiki system written in PHP. Prior to version 4.6.6, YesWiki through the latest development branch contains a SQL injection vulnerability in ReactionManager::deleteUserReaction() that allows any authenticated user to inject arbitrary SQL via the {idreaction} and {id} URL path parameters. The parameters are concatenated directly into a SQL LIKE clause without escaping or parameterization. This issue has been patched in version 4.6.6.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nYesWiki through the latest development branch contains a SQL injection vulnerability in `ReactionManager::deleteUserReaction()` that allows any authenticated user to inject arbitrary SQL via the `{idreaction}` and `{id}` URL path parameters. The parameters are concatenated directly into a SQL LIKE clause without escaping or parameterization.\n\nThis is a sibling of CVE-2026-46670 (unauthenticated SQLi in `FormManager::create()`). Both share the same root cause — raw string concatenation into SQL queries — but exist in different components.\n\n## Root Cause\n\n`includes/controllers/ApiController.php` line 726:\n```php\n/**\n * @Route(\"/api/reactions/{idreaction}/{id}/{page}/{username}\", methods={\"DELETE\"}, options={\"acl\":{\"+\"}})\n */\n```\n\nACL `\"+\"` = any authenticated user. Parameters flow into `ReactionManager::deleteUserReaction()` → `TripleStore::delete()` with raw string concatenation into SQL LIKE clause (line 356).\n\nThe `if` branch (lines 340-354) properly uses `$this->dbService->escape()`. The `else` branch does not — the developer applied escaping to one code path but not the other.\n\n## PoC\n\n```\nDELETE /wiki/?api/reactions/x%27%20OR%201=1%20OR%20value%20LIKE%20%27/test/SomePage/attacker\nHost: localhost:8085\nCookie: <session cookie>\n```\n\nTime-based blind variant via `{id}` parameter for data exfiltration.\n\n## Impact\n\nFull database read/write. Any self-registered user can extract `yeswiki_users` password hashes and emails.\n\n## Suggested Fix\n\nApply `$this->dbService->escape()` to all parameters in the `else` branch, matching the `if` branch pattern. Also audit all `TripleStore::delete()` callers that pass `$extraSQL`.\n\n## Credits\n\nKai Aizen / SnailSploit","format":"markdown","source":"ghsa"}],"published":"2026-07-09T21:02:40.000Z","modified":"2026-09-08T21:05:26.920Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 4.6.6","status":"affected"}],"vendor":"YesWiki","product":"yeswiki","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.6.6"}],"ecosystem":"Packagist","package":"yeswiki/yeswiki","purl":"pkg:composer/yeswiki/yeswiki","source":"ghsa"}],"references":[{"url":"https://github.com/YesWiki/yeswiki/security/advisories/GHSA-4pf7-cc4r-g63h","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/YesWiki/yeswiki/commit/90ca54fb518e1c43a1ead6e4f5bf9f0389789841","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/YesWiki/yeswiki/releases/tag/v4.6.6","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/YesWiki/yeswiki","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-09-08T18:04:39.397Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-52775","url":"https://www.cve.org/CVERecord?id=CVE-2026-52775","licence":"CVE Terms of Use","modified":"2026-09-08T18:05:15.099Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4pf7-cc4r-g63h","url":"https://github.com/advisories/GHSA-4pf7-cc4r-g63h","licence":"CC-BY-4.0","modified":"2026-07-09T21:26:42.185Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-52775","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-52775","licence":"Public domain","modified":"2026-09-08T21:05:26.920Z"}],"updatedAt":"2026-11-25T22:59:36.421Z","epss":{"score":0.00356,"percentile":0.31319,"date":"2026-12-01T12:00:22.000Z"}}