Sylius versions prior to 2.0.18, 2.1.15, and 2.2.6 contain an Insecure Direct Object Reference (IDOR) vulnerability in the Shop Payment Request API endpoints. The GET and PUT endpoints for payment requests identify resources solely by a UUID hash without verifying ownership by the authenticated user. This allows an attacker who obtains a payment request hash to read sensitive order information and modify payment request redirect URLs to attacker-controlled destinations. The POST endpoint for creating payment requests similarly lacks ownership verification. The vulnerability requires obtaining the UUID hash out-of-band but does not require further authentication once the hash is known. Official patches are available in the fixed versions. A workaround involves adding query extensions to enforce ownership checks on payment request access.
An authorization bypass vulnerability exists in the Sylius shop account API endpoint that allows authenticated customers to assign payment methods to their orders that are not enabled for the order's sales channel. This occurs because the PATCH /api/v2/shop/account/orders/{tokenValue}/payments/{paymentId} endpoint does not validate channel restrictions on payment methods, unlike the equivalent checkout endpoint. The issue affects Sylius versions prior to 2.0.18, 2.1.15, and 2.2.6. A fix is available in these versions and above. A workaround involves decorating the PaymentMethodChangerInterface service to enforce channel checks.
Sylius versions prior to 2.0.18, 2.1.15, and 2.2.6 contain a vulnerability in the Cart FormComponent that allows modification or deletion of an already-completed order. This occurs because the cart page in the browser does not reflect changes made to the order status in the background, allowing actions such as clearing the cart, removing products, or changing quantities to corrupt or delete completed order data irreversibly.
YesWiki versions prior to 4.6.6 contain a critical vulnerability in the Bazar form field calculator (CalcField.php) where user-defined formulas are validated by a complex recursive regular expression before being passed to PHP's eval() function. This approach is flawed, allowing attackers to cause a Denial of Service via PCRE stack overflow or potentially bypass validation to execute arbitrary PHP code remotely. The vulnerability impacts confidentiality, integrity, and availability of the affected system.
YesWiki versions prior to 4.6.6 contain an authenticated PHP object injection vulnerability in the BazarImportAction component. The vulnerability arises from unsafe use of unserialize() on attacker-controlled input without restricting allowed classes, combined with automatic invocation of __toString magic methods. This allows authenticated wiki admins to execute arbitrary PHP object deserialization, potentially leading to remote code execution via known gadget chains in included dependencies. The import action lacks CSRF protection, enabling remote attackers to exploit the vulnerability through crafted POST requests that trigger the unserialize sink. No official patch information is provided in the advisory.
YesWiki versions prior to 4.6.6 contain an authenticated SQL injection vulnerability in the ReactionManager component. Authenticated users can exploit improper input handling in the deleteUserReaction() function, where URL path parameters are concatenated directly into a SQL LIKE clause without proper escaping. This allows arbitrary SQL injection, enabling full database read and write access, including extraction of user password hashes and emails.
YesWiki versions prior to 4.6.6 with the Bazar extension enabled are vulnerable to a reflected cross-site scripting (XSS) issue. The vulnerability arises because the `id` GET parameter is inserted into HTML attributes without proper escaping, using only `strip_tags()`, which does not neutralize double quotes. This allows attackers to inject arbitrary HTML attributes and JavaScript event handlers, leading to script execution in the victim's browser. The vulnerable endpoint is accessible without authentication or any access control checks, and does not require valid page tags or edit rights. An attacker can craft a URL that, when visited by a victim, triggers the injected script. This vulnerability is classified as CWE-79 and has a moderate severity rating.
YesWiki versions from 4.1.0 up to but not including 4.6.6 are vulnerable to a reflected cross-site scripting (XSS) issue via the unescaped 'time' GET parameter in the archived revision view handler (handlers/page/show.php). The vulnerability occurs because the 'time' parameter is reflected into a hidden HTML input field without proper escaping, allowing an attacker to inject arbitrary JavaScript. Exploitation requires the victim to have both read and write access to the target page, although some default configurations may allow anonymous exploitation on public editable pages. The issue arises due to MySQL's coercion of malformed DATETIME strings, enabling the crafted payload to match an archived revision and be reflected unescaped in the response.
YesWiki's Bazar form-field templates contain stored cross-site scripting (XSS) vulnerabilities due to unsafe use of Twig's raw('html') filter on user-controllable field.label and field.hint values. These fields are populated from form definitions editable by users with high privileges (typically admins). The vulnerability allows injection of malicious HTML or event handlers in form attributes and label bodies, potentially affecting all users viewing the forms. The issue persists in multiple templates beyond those fixed in a prior commit. The CVSS 3.1 vector rates this as medium severity with a score of 4.7.
YesWiki versions 4.2.0 through 4.6.5 contain a second-order SQL injection vulnerability in the ApiController::deletePage() method. An authenticated low-privilege user can create a page with a malicious tag containing SQL code, which is stored safely but later used unescaped in a DELETE SQL query. This allows execution of arbitrary SQL commands in the wiki database, including time-based blind data exfiltration. The vulnerability arises because the page tag is read back from the database and interpolated into a SQL query without proper escaping. Exploitation requires three steps: planting the malicious tag, making the page non-orphaned via an include directive, and invoking the delete API endpoint. No official patch information is provided.
YesWiki versions prior to 4.6.6 have an unauthenticated SQL injection vulnerability in the public Bazar entry-listing APIs. The issue arises because numeric query filters are escaped but not properly validated or quoted, allowing attackers to inject boolean SQL expressions. This can lead to unauthorized inference of database contents via crafted queries. The vulnerability affects numeric Bazar fields such as number, range, and map latitude/longitude fields. No known exploits in the wild have been reported.
YesWiki versions 4.6.2 through 4.6.5 contain an unauthenticated server-side request forgery (SSRF) vulnerability in the ActivityPub feature. The vulnerability arises because the HTTP Signature verification process makes an outbound HTTP GET request to the URL specified in the Signature header's keyId parameter without any validation or cryptographic verification. This allows an attacker to force the server to make arbitrary HTTP requests to internal or external resources, potentially exposing sensitive information such as cloud metadata or internal services. The vulnerable endpoint is publicly accessible and requires only that ActivityPub be enabled on a form.
YesWiki versions 4.6.2 through 4.6.5 contain a vulnerability in the HttpSignatureService::verifySignature() method where the result of PHP's openssl_verify() is checked using a loose boolean negation. Because openssl_verify() can return -1 on certain errors (such as using a DSA public key with an RSA algorithm), which evaluates as truthy in PHP, the signature verification failure is bypassed. This allows unauthenticated attackers to send malicious ActivityPub requests that are processed as valid, enabling unauthorized Create, Update, or Delete operations.
YesWiki versions prior to 4.6.6 contain a critical vulnerability in the erasespamedcomments action that allows unauthenticated users with default write access to delete arbitrary wiki pages without authorization checks. The vulnerability arises from the lack of access control on the {{erasespamedcomments}} action, combined with the default permissive ACL configuration and the absence of validation in the page deletion functions. This permits deletion of any page, including the front page and administrative pages, by sending crafted POST requests. No CSRF protections or per-page authorization checks are performed during deletion.
YesWiki versions prior to 4.6.6 contain a stored SQL injection vulnerability in the recentchanges action's period argument when invoked via the action invocation syntax. The vulnerability arises because the period parameter from the action invocation is not validated or escaped before being interpolated into an SQL query, allowing an attacker who can save a specially crafted page to execute arbitrary SQL queries. This leads to arbitrary database read access for any user viewing the malicious page. The default configuration allows anonymous users to exploit this via the page-edit flow.
YesWiki Bazar contains a stored Server-Side Template Injection (SSTI) vulnerability in its semantic template feature that allows an authenticated administrator to inject arbitrary Twig template code. This code is executed server-side when public semantic endpoints are accessed, enabling remote code execution (RCE). The vulnerability arises because administrator-controlled Twig templates are rendered without adequate sandboxing or escaping. A proof-of-concept demonstrated both template evaluation and escalation to system-level command execution, resulting in an interactive shell on the server. The issue affects YesWiki versions prior to 4.6.6.
A command injection vulnerability exists in the laravel-backup-restore package prior to version 1.9.4. During database restore, a crafted backup archive with maliciously named files under the db-dumps directory can cause arbitrary shell commands to be executed. This occurs because dump filenames are not properly shell-escaped when passed to database import commands. The vulnerability allows execution of commands as the PHP/Laravel application user on the system performing the restore.
CakePHP Authentication is an authentication plugin for CakePHP that can also be used in PSR-7 based applications. Prior to 2.11.1, 3.3.6, and 4.1.1, the getLoginRedirect() method contains a weakness to backslash bypasses that allows redirect targets with attacker-controlled hostnames through the redirect query string parameter. This issue is fixed in versions 2.11.1, 3.3.6, and 4.1.1.
Admidio versions up to 5.0.11 have a CSRF vulnerability in the modules/plugins.php endpoint, which handles plugin install, uninstall, and update operations via GET requests without CSRF token validation. An attacker can trick an authenticated administrator into visiting a malicious page that triggers these operations, including uninstalling plugins. The uninstall operation executes SQL scripts that drop database tables, causing irreversible data loss. The vulnerability arises because these state-changing operations lack CSRF protection and rely on GET requests, which browsers send with session cookies under SameSite=Lax. The recommended fix is to switch these operations to POST requests and add CSRF token validation.
The `actionRenderCardPreview()` method in `FieldsController` passes the `fieldLayoutConfig` POST parameter directly to `Fields::createLayout()` without calling `Component::cleanseConfig()`. This allows Yii2 event handler injection via `on eventName` keys in the config array, leading to arbitrary code execution.
This is the same vulnerability pattern that was fixed in GHSA-4484-8v2f-5748 (same file, `_fldComponent` method correctly uses `cleanseConfig`), GHSA-qx2q-q59v-wf3j (EntryTypesController), and GHSA-2fph-6v5w-89hh (ElementIndexesController).
## PoC
As an admin user with a valid session:
```
POST /admin/actions/fields/render-card-preview HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Cookie: CraftSessionId=<session>
fieldLayoutConfig[on+init]=phpinfo&CRAFT_CSRF_TOKEN=<token>
```
When the FieldLayout object is constructed, Yii2 processes the `on init` key as an event handler registration. During `Component::init()`, the `init` event is triggered, calling `phpinfo()`. The phpinfo output (which includes environment variables, potentially containing database credentials and `CRAFT_SECURITY_KEY`) will appear in the response.
## Impact
An authenticated admin can achieve RCE through Yii2 event handler injection. While this requires admin access (same as GHSA-4484-8v2f-5748, which was rated moderate), it allows arbitrary PHP function execution and information disclosure via phpinfo.