Different Menu in Different Pages - Insecure deserialization

Summary

Name Different Menu in Different Pages - Control Menu Visibility (All in One) trun - Insecure deserialization
Code nameskims-70
Product Different Menu in Different Pages - Control Menu Visibility (All in One)
Affected versionsVersion trun
StatePrivate
Release date2024-12-06

Vulnerability

KindInsecure deserialization
RuleInsecure deserialization
RemoteNo
CVSSv4 VectorCVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:U
Exploit availableNo
CVE ID(s)cve-2020-2020

Description

Different Menu in Different Pages - Control Menu Visibility (All in One) trun was found to be vulnerable. Unvalidated user input is used directly in an unserialize function in myapp/admin/includes/AjaxRequests/save-d ifferent-menu-conditions.php.

Vulnerability

Skims by Fluid Attacks discovered a Insecure deserialization in Different Menu in Different Pages - Control Menu Visibility (All in One) trun. The following is the output of the tool:

Skims output

 27 | if (!current_user_can('administrator')) { 28 | echo wp_json_encode(array('success' => false, 'status' => 'not_administrator', 'response' => '')); 29 | 30 | die(); 31 | } 32 | 33 | $theme_location = sanitize_key($_POST['theme_location']); 34 | $assigned_menu = (int) sanitize_key($_POST['assigned_menu']); 35 | $name = sanitize_text_field(serialize($_POST['name'] )); 36 | >  37 |         $name = unserialize($name);
   38 |
   39 |         if(is_array($name)){
   40 |
   41 |
   42 |             //if menu has changed
   43 |             $changed    = sanitize_key($_POST['changed']);
   44 |             $changed_menu   = (int) sanitize_key($_POST['changed_menu']);
   45 |             $changed_theme_location = sanitize_key($_POST['changed_theme_location']);
   46 |
   47 |
      ^ Col 0

Our security policy

We have reserved the ID cve-2020-2020 to refer to this issue from now on.

System Information

  • Version: Different Menu in Different Pages -

Control Menu Visibility (All in One) trun

Mitigation

There is currently no patch available for this vulnerability.

Credits

The vulnerability was discovered by Andres Roldan from Fluid Attacks' Offensive Team using Skims

Timeline

Time-lapse-logo

2024-12-06

Vulnerability discovered.

Time-lapse-logo

2024-12-06

Vendor contacted.

Fluid Logo Footer

Hacking software for over 20 years

Fluid Attacks tests applications and other systems, covering all software development stages. Our team assists clients in quickly identifying and managing vulnerabilities to reduce the risk of incidents and deploy secure technology.

Copyright © 0 Fluid Attacks. We hack your software. All rights reserved.