Headline
CVE-2023-4448: 1.3.1.2 · OpenRapid/rapidcms@4dff387
A vulnerability was found in OpenRapid RapidCMS 1.3.1 and classified as critical. This issue affects some unknown processing of the file admin/run-movepass.php. The manipulation of the argument password/password2 leads to weak password recovery. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. The identifier of the patch is 4dff387283060961c362d50105ff8da8ea40bcbe. It is recommended to apply a patch to fix this issue. The identifier VDB-237569 was assigned to this vulnerability.
@@ -1,29 +1,4 @@
<?php
include(“…/resource/variable.php”);
function encode($string = '’, $skey = ‘cxphp’)
{
$strArr = str_split(base64_encode($string));
$strCount = count($strArr);
foreach (str_split($skey) as $key => $value)
$key < $strCount && $strArr[$key] .= $value;
return str_replace(array('=’, '+’, ‘/’), array('O0O0O’, 'o000o’, ‘oo00o’), join('’, $strArr));
}
define('BASE_PATH’, str_replace('\\’, '/’, realpath(dirname(__FILE__) . ‘/’)) . “/”);
define('BASE_PATH1’, str_replace('\\’, '/’, realpath(dirname(BASE_PATH) . ‘/’)) . “/”);
$json_string = file_get_contents(BASE_PATH1 . ‘/install/sql-config/sql.json’);
$dataxxx = json_decode($json_string, true);
$link = mysqli_connect($dataxxx[‘server’], $dataxxx[‘dbusername’], $dataxxx[‘dbpassword’], $dataxxx[‘dbname’]);
$sql = "select password from `rapidcmsadmin` where username=\"admin\"";
$result = mysqli_query($link, $sql);
$pass = mysqli_fetch_row($result);
$pa = $pass[0];
if ($_COOKIE[“admin”] != encode('admin’, $pa)) {
}else{
Header(“Location: index.php”);
}
?>
Expand Down