Summary
Before version 4.6.00, NukeViet CMS extension-store handlers can deserialize a substituted response without restricting which classes may be instantiated. If an attacker can alter outbound traffic to the store and a GODADMIN uses store functions, this may allow code execution as the web-server user.
Affected context
The issue affects NukeViet CMS versions before 4.6.00 in extension-store interactions. The described risk arises when outbound requests use disabled TLS certificate verification and handlers pass the response to unserialize() without an allowed-classes restriction. A GODADMIN must open or use the store list, detail, install, or update functions for the affected response to be processed.
Exploit preconditions
- Attack surface: Outbound HTTP traffic between NukeViet and the extension store
- Required access: Ability to alter or intercept that traffic; a GODADMIN must also use an affected store function
- Trigger point: Processing the extension-store response in a list, detail, install, or update workflow
- Why exploitation is possible: Disabled TLS verification can permit response substitution, and unrestricted deserialization can instantiate an in-tree gadget capable of writing attacker-controlled content
Why this happens
The issue combines insufficient verification of the extension store's HTTPS connection (CWE-295) with unsafe deserialization (CWE-502). When a response is not reliably authenticated and is passed to unserialize() without restricting allowed classes, attacker-controlled serialized data may trigger object behavior during processing. In this case, an in-tree Guzzle cookie-jar gadget can write content to a chosen path.
Potential impact
- An attacker may write a PHP file under the web root
- The written file could enable code execution as the web-server user
- The compromised application could be used to access or alter data available to its runtime account
General mitigation guidance
Defensive patterns include:
- Enforce certificate and hostname verification for outbound HTTPS connections by default
- Avoid deserializing responses from remote services; use constrained data formats and parsers where possible
- If deserialization is unavoidable, restrict permitted classes and validate the resulting data against a strict schema
- Treat extension-store responses as untrusted, even when they come from expected endpoints
- Limit web-server and application-process privileges, and restrict write access to executable web-root paths
How teams detect issues like this
- Use static analysis to identify disabled TLS verification and calls to
unserialize()on network-derived data - Review extension-store handlers for response validation, allowed-class restrictions, and unsafe object side effects
- Apply policy checks that require verified TLS for outbound connections and prohibit unrestricted deserialization of remote responses
- Monitor for unexpected PHP file creation in web-accessible directories and investigate unusual extension-store traffic

