Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php if(!function_exists('gzinflate')){die('Error: You need Zlib library to run this appl..

Decoded Output download

<?php function WnRqnIxDGiNOljRYJXzi($AKCwlpUzXc) {
    $r = base64_decode("Z3ppbmZsYXRlKGJhc2U2NF9kZWNvZGUoJEFLQ3dscFV6WGMpKQ==");
    return eval("return $r;");
}
function namrVmJmvmwDRQILmfeQ($NyGmTsuMQj) {
    $r = base64_decode("Z3ppbmZsYXRlKGJhc2U2NF9kZWNvZGUoJE55R21Uc3VNUWopKQ==");
    return eval("return $r;");
} ?><?php
defined('BASEPATH') or exit('No direct script access allowed');
class ThirdPartyIntegration extends CI_Controller {
    public function __construct() {
        parent::__construct();
        header("Cache-Control: no-cache,must-revalidate");
        $passwordIdValue = $this->session->userdata('reset_password_ind');
        if ($passwordIdValue == 1) {
            redirect('settings/changePassword');
        }
        $this->load->model('ModelThirdPartyIntegration');
        if (!is_logged_in()) {
            redirect('login/loginPage');
        }
    }
    public function dashboard() {
        $nav = $this->input->post("backNav");
        unset($nav);
        $nav = array();
        $nav_data = array('name' => "SAFE Hooks", 'url' => "ThirdPartyIntegration/dashboard", 'post_parameter' => "",);
        array_push($nav, $nav_data);
        $data['backNav'] = $nav;
        if ($this->session->userdata('is_logged_in') == true) {
            $this->load->view('thirdPartyDashboard', $data);
        } else {
            redirect('login/loginPage');
        }
    }
    public function preThirdPartyIntegration() {
        if ($this->session->userdata('is_logged_in') == true) {
            $data['userId'] = $this->session->userdata('userId');
            $data['assetHead'] = $this->ModelThirdPartyIntegration->getAssetHeads();
            $this->load->view('preThirdPartyIntegrationDashboard', $data);
        } else {
            redirect('login/loginPage');
        }
    }
    public function ajaxNessusCheck() {
        $myFile = "/usr/local/safe/config.ini";
        $searchString = "nessusPath";
        if (exec('grep ' . escapeshellarg($searchString) . ' ' . $myFile)) {
            echo "nessusIntegrated";
        } else {
            echo "nessusNotIntegrated";
        }
    }
    public function vmCalendar() {
        if ($this->session->userdata('is_logged_in') == true) {
            $data['frmDash'] = $this->input->post("frmDash");
            $toolName = $this->input->post("toolName");
            $data['assetHead'] = $this->ModelThirdPartyIntegration->getAssetHeads();
            $dataScan = $this->ModelThirdPartyIntegration->getIntegrationScanUi($toolName);
            $data['dataScanDetailsUi'] = array_map(function ($dataScan) {
                return array('toolName' => $dataScan['toolName'], 'scanName' => $dataScan['scanName'], 'scanFlag' => $dataScan['scanFlag'], 'start' => preg_replace('/\s+/', 'T', $dataScan['start']), 'title' => $dataScan['title'], 'assetHeadName' => $dataScan['assetHeadName'],);
            }, $dataScan);
            $data['dataScanDetailsUi'] = json_encode($data['dataScanDetailsUi']);
            $data['toolName'] = $toolName;
            $data['userId'] = $this->session->userdata('userId');
            $this->load->view('vmCalendar', $data);
        } else {
            redirect('login/loginPage');
        }
    }
    public function vmCalendarAjaxResponse() {
        $assetHeadId = $this->input->post("changeStatus");
        $assetHeadDetail = $this->ModelThirdPartyIntegration->fetchAssets($assetHeadId);
        echo json_encode($assetHeadDetail);
    }
    public function nessusSchedule() {
        if ($this->session->userdata('is_logged_in') == true) {
            $this->load->library('form_validation');
            $this->form_validation->set_rules("scanName", 'Scan Name', 'required');
            $this->form_validation->set_rules("selectedAsset[]", 'Asset', 'required');
            $this->form_validation->set_rules("selectedtVertical", 'Vertical', 'required');
            $userId = $this->input->post("userId");
            if ($this->input->post("scanType") == '') {
                $scanType = $this->input->post("scanTypeNow");
            } else {
                $scanType = $this->input->post("scanType");
            }
            $scanName = $scanType . "_" . $this->input->post("scanName");
            $nessusScanName = $this->ModelThirdPartyIntegration->getNessusScanNames();
            $scanNameFlag = 0;
            foreach ($nessusScanName as $value) {
                if ($value['scanName'] == $scanName) {
                    $scanNameFlag++;
                }
            }
            if ($scanNameFlag != 0) {
                echo 'duplicate';
            } else {
                if ($this->form_validation->run()) {
                    $assetName = $this->input->post("selectedAsset");
                    if ($this->input->post("now") == '1') {
                        $scanNowTime = $this->ModelThirdPartyIntegration->getNowTime();
                        $scanDate = substr($scanNowTime['NOW()'], 0, 10);
                        $scanTime = substr($scanNowTime['NOW()'], 11, 19);
                    } else {
                        $scanTime = $this->input->post("selTime");
                        $scanDate = date('Y-m-d', strtotime($this->input->post("slecteddate")));
                    }
                    $assetHeadDetails = explode(',', $this->input->post("selectedtVertical"));
                    $sTime = $scanDate . ' ' . $scanTime . ':00';
                    $current_date = date('Y-m-d  H:i:s');
                    if ($this->input->post("now") == '1') {
                        $correctTimeFlag = 1;
                    } else {
                        if (strtotime($sTime) > strtotime($current_date)) {
                            $correctTimeFlag = 1;
                        } else {
                            $correctTimeFlag = 0;
                        }
                    }
                    if ($correctTimeFlag == 1) {
                        foreach ($assetName as $value) {
                            $assetId = $this->ModelThirdPartyIntegration->getAssetIdIp($value, $assetHeadDetails[1]);
                            $assetId = json_decode(json_encode($assetId), true);
                            $assetId = $assetId['assetId'];
                            $assetIp = $this->ModelThirdPartyIntegration->getAssetIdIp($value, $assetHeadDetails[1]);
                            $assetIp = json_decode(json_encode($assetIp), true);
                            $assetIp = $assetIp['ipAddress'];
                            echo "<br>" . $assetId . "<br>" . $assetIp;
                            $applicability = $this->ModelThirdPartyIntegration->fetchApplicabilityId($assetHeadDetails[1], $assetId);
                            $nessusDetails[] = array('scanName' => $scanName, 'assetId' => $assetId, 'assetName' => $value, 'assetIp' => $assetIp, 'assetHeadId' => $assetHeadDetails[1], 'assetHeadName' => $assetHeadDetails[0], 'applicability' => $applicability,);
                            $dataScanDetailsUi[] = array('toolName' => 'Nessus', 'scanName' => $scanName, 'scanFlag' => '0', 'start' => $scanDate . 'T' . $scanTime . ':00', 'title' => $value, 'assetHeadName' => $assetHeadDetails[0],);
                        }
                        $sendNotifTo = array();
                        foreach ($nessusDetails as $key => $value) {
                            $people_id = $this->ModelThirdPartyIntegration->getPeopleId($value['assetId']) ['people_id'];
                            $sendNotifTo[$key]['assetName'] = $value['assetName'];
                            $sendNotifTo[$key]['email'] = $this->ModelThirdPartyIntegration->getEmailAndNumber($people_id) ['email'];
                            $sendNotifTo[$key]['phone'] = $this->ModelThirdPartyIntegration->getEmailAndNumber($people_id) ['phone'];
                        }
                        $insertSchedule = $this->ModelThirdPartyIntegration->insertNessusSchedule($scanName, $sTime, $nessusDetails, $userId);
                        $nessusAssetArray = array();
                        foreach ($dataScanDetailsUi as $value) {
                            array_push($nessusAssetArray, $value['title']);
                        }
                        echo json_encode($insertSchedule);
                        $sendNotifToGroup = array();
                        foreach ($sendNotifTo as $key => $value) {
                            $sendNotifToGroup[$value['email']]['email'] = $value['email'];
                            $sendNotifToGroup[$value['email']]['phone'] = $value['phone'];
                            if (isset($sendNotifToGroup[$value['email']]['assetName'])) {
                                $sendNotifToGroup[$value['email']]['assetName'] = $sendNotifToGroup[$value['email']]['assetName'] . ", " . $value['assetName'];
                            } else {
                                $sendNotifToGroup[$value['email']]['assetName'] = $value['assetName'];
                            }
                        }
                        if ($insertSchedule == 'true') {
                            foreach ($sendNotifToGroup as $value) {
                                $inApp['scanName'] = $dataScanDetailsUi[0]['scanName'];
                                $inApp['scanTime'] = $scanTime;
                                $inApp['scanDate'] = $scanDate;
                                $inApp['asset_name'] = $value['assetName'];
                                $inApp['asset_head_name'] = $assetHeadDetails[0];
                                $inApp['email'] = $this->session->userdata['emailId'];
                                $inApp['notification_type'] = 'Nessus Scan';
                                $insertInApp = $this->ModelThirdPartyIntegration->genInAppNotification('6', json_encode($inApp), $value['email']);
                                $this->load->model('ModelManageNotification');
                                $message = $this->ModelManageNotification->fetchNotifCount();
                                $this->load->model('EmailTemplate');
                                $headers = $this->EmailTemplate->getExchangeHeadersForNessusScan();
                                $headers_array[$headers[0]] = $this->session->userdata['emailId'];
                                $headers_array[$headers[1]] = $dataScanDetailsUi[0]['scanName'];
                                $headers_array[$headers[2]] = $scanTime;
                                $headers_array[$headers[3]] = $scanDate;
                                $headers_array[$headers[4]] = $assetHeadDetails[0];
                                $headers_array[$headers[5]] = $value['assetName'];
                                $headers_array[$headers[6]] = base_url() . "mainDashboard/dashboard";
                                $template_data = $this->EmailTemplate->loadEMailTemplate('NessusScan', $headers_array, 0);
                                insertServiceDetails(3, 6, $value['email'], $template_data, '[SAFE] NESSUS Scan scheduled');
                            }
                            echo json_encode($dataScanDetailsUi);
                        }
                        if ($this->input->post("now") == '1') {
                            $cmd = "sudo python ./assets/pythonScript/nmap_nessus.py >/dev/null 2>&1 &";
                            $output = shell_exec($cmd);
                        }
                    } else {
                        echo "incorrect time";
                    }
                } else {
                    echo 'required';
                }
            }
        } else {
            redirect('login/loginPage');
        }
    }
    public function add_edit_AD_Details() {
        $this->load->library('form_validation');
        $this->form_validation->set_rules('ad_name', 'Ad Name', 'required');
        $this->form_validation->set_rules('serverIp', 'Server ip', 'required');
        $this->form_validation->set_rules('adPrimaryDomain', 'adPrimaryDomain', 'required');
        $this->form_validation->set_rules('port', 'port', 'required');
        $this->form_validation->set_rules('ldapversion', 'ldapversion', 'required');
        if ($this->form_validation->run()) {
            $isEdit = $this->input->post('isEdit');
            $checkUnique = $this->ModelThirdPartyIntegration->checkAdDetails($this->input->post('ad_name'));
            $sc_ad_integration = array('ad_name' => $this->input->post('ad_name'), 'server_ip' => $this->input->post('serverIp'), 'primary_domain' => $this->input->post('adPrimaryDomain'), 'port' => $this->input->post('port'), 'ldap_version' => $this->input->post('ldapversion'), 'del_flag' => 1, 'created_by' => $this->session->userdata('userId'), 'updated_by' => $this->session->userdata('userId'));
            if ($isEdit == 1) {
                $adId = $this->input->post('adId');
                $editAD = $this->ModelThirdPartyIntegration->updateAdDetails($sc_ad_integration, $adId);
                $data['msg'] = $editAD ? 'Success' : 'Failed';
            } elseif ($checkUnique == 0 && $isEdit == 0) {
                $addAD = $this->ModelThirdPartyIntegration->saveAdDetails($sc_ad_integration);
                $data['msg'] = $addAD ? 'Success' : 'Failed';
            }
            $data['adDetails'] = $this->ModelThirdPartyIntegration->getAdDetails();
            $this->load->view('adIntegrationView', $data);
        } else {
            $this->adIntegration();
        }
    }
    public function adIntegration() {
        if ($this->input->post('adId')) {
            $data['detail'] = $this->ModelThirdPartyIntegration->getAd($this->input->post('adId'));
            $data['isEdit'] = 1;
            $this->load->view('adIntegration', $data);
        } else {
            $this->load->view('adIntegration');
        }
    }
    public function adIntegrationView() {
        $data['msg'] = '';
        $data['adDetails'] = $this->ModelThirdPartyIntegration->getAdDetails();
        $this->load->view('adIntegrationView', $data);
    }
    public function deleteAd() {
        $ad_id = $this->input->post('ad_id');
        $check_user = $this->ModelThirdPartyIntegration->check_user($ad_id);
        if ($check_user['count'] == 0) {
            $deleteAd = $this->ModelThirdPartyIntegration->deleteAd($ad_id);
        } else {
            $deleteAd = false;
        }
        $data['msg'] = $deleteAd ? 'Success' : 'Failed';
        $data['adDetails'] = $this->ModelThirdPartyIntegration->getAdDetails();
        $this->load->view('adIntegrationView', $data);
    }
    public function testAdCredentials() {
        $adDetails = $this->input->post('obj');
        $cmd = "nmap " . $adDetails['serverIp'] . " -Pn -p " . $adDetails['port'] . " | grep ldap";
        $output = shell_exec($cmd);
        if (strpos($output, 'open') !== false && strpos($output, 'ldap') !== false) {
            echo json_encode(true);
        } else {
            echo json_encode(false);
        }
    }
    function reportParse($toolId, $vaPath) {
        $this->load->helper('reportparser');
        if ($toolId == ASSESS_TOOL_ID_BURP) {
            $xmlFile = file_get_contents($vaPath);
            return parser_burpsuite($xmlFile);
        } else if ($toolId == ASSESS_TOOL_ID_ACCUNETIX) {
            $html_file = $vaPath;
            return parser_acunetix(file_get_contents($html_file));
        }
    }
    public function integrationToolFileUploadBatch() {
        $this->load->model('ModelThirdPartyIntegration');
        $userId = $this->session->userdata('userId');
        $toolId = $this->input->post('toolId');
        $status_id = ID_CONTROL_STATUS_FAILED;
        if (($toolId == ASSESS_TOOL_ID_NESSUS) || ($toolId == ASSESS_TOOL_ID_QUALYS)) {
            $portPath = "Port";
            $allowedExts = array("csv");
            $file = $_FILES["file-0"]["tmp_name"];
            $host = "ip_address";
        } else if ($toolId == ASSESS_TOOL_ID_BURP) {
            $portPath = "Path";
            $allowedExts = array("xml");
            $file = $this->reportParse($toolId, $_FILES["file-0"]["tmp_name"]);
            $host = "asset_url";
        }
        if ((array_key_exists("file-0", $_FILES) || sizeof($_FILES) > 0) && ($file != '0')) {
            $vaReportName = explode(".", $_FILES["file-0"]["name"]);
            $extension = end($vaReportName);
            $err = '';
            if (in_array($extension, $allowedExts)) {
                if (($toolId == ASSESS_TOOL_ID_NESSUS) || ($toolId == ASSESS_TOOL_ID_BURP)) {
                    if (($handle = fopen($file, "r")) !== false) {
                        $i = 0;
                        $csvData = [];
                        while (($data = fgetcsv($handle, 0, ",")) !== false) {
                            $i++;
                            if ($i == 1) {
                                continue;
                            }
                            if (count($data) == INTEGRATION_TOOL_REPORT_COLUMN_COUNT) {
                                $row['plugin_id'] = htmlentities($data[0]);
                                $row['severity_score'] = htmlentities($data[2]);
                                $row['ip'] = htmlentities($data[4]);
                                if ((isset($data[5])) && ($data[5] != '')) {
                                    $row['protocol'] = htmlentities($data[5]);
                                } else {
                                    $row['protocol'] = 'not specified';
                                }
                                if ((isset($data[6])) && ($data[6] != '')) {
                                    $row['port'] = htmlentities($data[6]);
                                } else {
                                    $row['port'] = 'not specified';
                                }
                                $row['control'] = htmlentities($data[7]);
                                $row['controlDescription'] = htmlentities($data[8]);
                                $row['impact'] = htmlentities($data[9]);
                                $row['remediation'] = htmlentities($data[10]);
                                $row['remediationReference'] = htmlentities($data[11]);
                                $row['observation'] = htmlentities($data[12]);
                                $csvData[] = $row;
                            } else {
                                $err = getErrorMessage(ERR_INVALID_CSV_COLUMNS);
                            }
                        }
                    }
                } elseif ($toolId == ASSESS_TOOL_ID_QUALYS) {
                    $qualysScoring = $this->ModelThirdPartyIntegration->qualysScoring();
                    if (($handle = fopen($file, "r")) !== false) {
                        $i = 0;
                        $csvData = [];
                        while (($data = fgetcsv($handle, 0, ",")) !== false) {
                            $i++;
                            if ($i < 9) {
                                continue;
                            }
                            if ((count($data) == QUALYS_REPORT_COLUMN_COUNT) || (count($data) == 1)) {
                                if (isset($data[7])) {
                                    if ($data[7] == 'Vuln') {
                                        $scoreKey = htmlentities($data[8]) - 1;
                                        $score = $qualysScoring[$scoreKey]['score'];
                                        $row['plugin_id'] = htmlentities($data[5]);
                                        $row['severity_score'] = $score;
                                        $row['ip'] = htmlentities($data[0]);
                                        if ((isset($data[10])) && ($data[10] != '')) {
                                            $row['protocol'] = htmlentities($data[10]);
                                        } else {
                                            $row['protocol'] = 'not specified';
                                        }
                                        if ((isset($data[9])) && ($data[9] != '')) {
                                            $row['port'] = htmlentities($data[9]);
                                        } else {
                                            $row['port'] = 'not specified';
                                        }
                                        $row['control'] = htmlentities($data[6]);
                                        $row['controlDescription'] = htmlentities($data[6]);
                                        $row['impact'] = htmlentities($data[21]);
                                        $row['remediation'] = htmlentities($data[22]);
                                        $row['remediationReference'] = htmlentities($data[23]);
                                        $row['observation'] = htmlentities($data[20]);
                                        $csvData[] = $row;
                                    }
                                }
                            } else {
                                $err = getErrorMessage(ERR_INVALID_CSV_COLUMNS);
                            }
                        }
                    }
                }
                if (($err == '') && (empty($csvData))) {
                    $err = getErrorMessage(ERR_EMPTY_CSV);
                }
                if ($err == '') {
                    $filterCsv = array_filter(array_column($csvData, 'severity_score'), 'strlen');
                    $ipsInCsv = array_unique(array_column($csvData, 'ip'));
                    $ipsInCsv = array_map(function ($ipsInCsv) {
                        return '"' . $ipsInCsv . '"';
                    }, $ipsInCsv);
                    $allAssetsInfo = $this->ModelThirdPartyIntegration->getAssetDetails(implode(',', $ipsInCsv), $toolId);
                    $ControlListData = [];
                    $controlListDetailsdata = [];
                    $eventsData = [];
                    $assessmentData = [];
                    $get_severity = $this->ModelThirdPartyIntegration->getSeverityLevels();
                    $severity_levels = [];
                    foreach ($get_severity as $key => $value) {
                        $severity_levels[$value['severity_score']] = $value['severity_level'];
                    }
                    if (sizeof($allAssetsInfo) > 0) {
                        foreach ($filterCsv as $key => $value) {
                            if (!in_array($csvData[$key]['ip'], array_column($allAssetsInfo, $host))) {
                                $key = $key + 2;
                                $err.= getErrorMessage(ERR_IP_MISMATCH, "IP address", ($key)) . "<br>";
                            } else {
                                $current_asset_key = array_search($csvData[$key]['ip'], array_column($allAssetsInfo, $host));
                                $finalControlSeries = $allAssetsInfo[$current_asset_key]['asset_head_id'] . '-' . $allAssetsInfo[$current_asset_key]['applicabilityId'] . '-' . $csvData[$key]['plugin_id'];
                                $existing_assessment_key = array_search($finalControlSeries, array_column($ControlListData, 'control_series'));
                                $assessmentDataIndex = $finalControlSeries . "-" . $allAssetsInfo[$current_asset_key]['asset_id'];
                                if ((strlen($existing_assessment_key)) && (in_array($allAssetsInfo[$current_asset_key]['asset_id'], array_column($assessmentData, 'asset_id'))) && (isset($assessmentData[$assessmentDataIndex]))) {
                                    $assessmentData[$assessmentDataIndex]['observation'].= " [" . $csvData[$key]['port'] . " | " . $csvData[$key]['protocol'] . '] ';
                                    if ($toolId == ASSESS_TOOL_ID_BURP) {
                                        $assessmentData[$assessmentDataIndex]['auditor_remediation'].= "<br>" . $csvData[$key]['remediation'];
                                    }
                                } elseif ((strlen($existing_assessment_key)) && (!in_array($allAssetsInfo[$current_asset_key]['asset_id'], array_column($assessmentData, 'asset_id'))) && (!isset($assessmentData[$assessmentDataIndex]))) {
                                    $assessmentData[$assessmentDataIndex] = array('control_series' => $finalControlSeries, 'control_type_id' => '1', 'asset_id' => $allAssetsInfo[$current_asset_key]['asset_id'], 'asset_head_id' => $allAssetsInfo[$current_asset_key]['asset_head_id'], 'status_id' => $status_id, 'mitigation_status_id' => '22', 'finding_name' => 'NA', 'parameter' => 'NA', 'observation' => htmlentities($csvData[$key]['observation']) . ' [' . $portPath . ' | Protocol] : [' . $csvData[$key]['port'] . ' | ' . $csvData[$key]['protocol'] . '] ', 'base_score' => null, 'temporal_score' => null, 'environmental_score' => null, 'instance_id' => '1', 'severity_level' => $severity_levels[number_format((float)$csvData[$key]['severity_score'], 2, '.', '') ], 'base_score' => $csvData[$key]['severity_score'], 'temporal_score' => $csvData[$key]['severity_score'], 'environmental_score' => $csvData[$key]['severity_score'], 'severity_score' => $csvData[$key]['severity_score'], 'original_severity_score' => $csvData[$key]['severity_score'], 'auditor_id' => $userId, 'auditor_impact' => $csvData[$key]['impact'], 'auditor_remediation' => $csvData[$key]['remediation'], 'created_by' => $userId, 'updated_by' => $userId,);
                                } else {
                                    $ControlListData[$finalControlSeries] = array('control_series' => $finalControlSeries, 'control_group' => 'Vulnerability Assesment', 'control' => $csvData[$key]['control'], 'control_type_id' => '1', 'aplcblty_id' => $allAssetsInfo[$current_asset_key]['applicabilityId'], 'asset_head_id' => $allAssetsInfo[$current_asset_key]['asset_head_id'], 'control_area' => 'Technology', 'base_score' => null, 'temporal_score' => null, 'environmental_score' => null, 'score' => $csvData[$key]['severity_score'], 'assess_tool_id' => $toolId, 'created_by' => $userId, 'updated_by' => $userId,);
                                    $controlListDetailsdata[$finalControlSeries] = array('control_series' => $finalControlSeries, 'control_desc' => $csvData[$key]['controlDescription'], 'aplcblty_id' => $allAssetsInfo[$current_asset_key]['applicabilityId'], 'asset_head_id' => $allAssetsInfo[$current_asset_key]['asset_head_id'], 'Impact' => $csvData[$key]['impact'], 'remediation' => $csvData[$key]['remediation'], 'remediation_rfrnc' => $csvData[$key]['remediationReference'], 'assess_tool_id' => $toolId, 'created_by' => $userId, 'updated_by' => $userId,);
                                    $assessmentData[$assessmentDataIndex] = array('control_series' => $finalControlSeries, 'control_type_id' => '1', 'asset_id' => $allAssetsInfo[$current_asset_key]['asset_id'], 'asset_head_id' => $allAssetsInfo[$current_asset_key]['asset_head_id'], 'status_id' => $status_id, 'mitigation_status_id' => '22', 'finding_name' => 'NA', 'parameter' => 'NA', 'observation' => htmlentities($csvData[$key]['observation']) . ' [' . $portPath . ' | Protocol] : [' . $csvData[$key]['port'] . ' | ' . $csvData[$key]['protocol'] . '] ', 'base_score' => null, 'temporal_score' => null, 'environmental_score' => null, 'instance_id' => '1', 'severity_level' => $severity_levels[number_format((float)$csvData[$key]['severity_score'], 2, '.', '') ], 'base_score' => $csvData[$key]['severity_score'], 'temporal_score' => $csvData[$key]['severity_score'], 'environmental_score' => $csvData[$key]['severity_score'], 'severity_score' => $csvData[$key]['severity_score'], 'original_severity_score' => $csvData[$key]['severity_score'], 'auditor_id' => $userId, 'auditor_impact' => $csvData[$key]['impact'], 'auditor_remediation' => $csvData[$key]['remediation'], 'created_by' => $userId, 'updated_by' => $userId,);
                                }
                            }
                        }
                    } else {
                        $err = getErrorMessage(ERR_NO_ASSET_REPORT_UP);
                    }
                }
                if ($err == '') {
                    $thirdPartyToolScanInsert = $this->ModelThirdPartyIntegration->insertCVSDataBatch($ControlListData, $controlListDetailsdata, $assessmentData, $toolId);
                    $this->load->model('ModelCalculation');
                    $assetIds = array_column($allAssetsInfo, 'asset_id');
                    $this->ModelCalculation->calculateSafeScore($assetIds);
                    if ($thirdPartyToolScanInsert) {
                        $errorD = array('type' => 'True', 'data' => '',);
                    } else {
                        $err = getErrorMessage(ERR_DATABASE_ERROR);
                        $errorD = array('type' => 'False', 'data' => $err,);
                    }
                } else {
                    $errorD = array('type' => 'False', 'data' => $err,);
                }
                echo json_encode($errorD);
                unlink($file);
            } else {
                $err = getErrorMessage(ERR_REPORT_FILE_FORMAT);
                $errorD = array('type' => 'False', 'data' => $err,);
                echo json_encode($errorD);
            }
        } else {
            $err = getErrorMessage(ERR_REPORT_FILE_FORMAT);
            $errorD = array('type' => 'False', 'data' => $err,);
            echo json_encode($errorD);
        }
    }
    public function downloadVATemplate() {
        $asset_head_id = $this->input->post('asset_head_id');
        $uploads_folder = "uploads";
        $user_guide_name = "User Guide_" . time() . ".txt";
        $note = "Instruction steps for the Generic VA Report Upload 

During generic VA Report upload, following fields are required to be filled for every Vulnerability, some of them are Mandatory and some of them are optional :
Control Name (will be considered a unique identifier) (Mandatory)
Control Description (Optional)
Auditor Impact (Mandatory)
Auditor Remediation (Mandatory)
CVSS Score (Mandatory)
Remediation Reference (Optional)
Observation (Optional)
CVSS Severity (Optional)
CVSS Vector (Optional)
CWE Mapping (Optional)
Finding (Optional)
Parameter/Path (Optional)
Port (Optional)
Protocol (Optional)

Note :
The template downloaded along with the instruction guide should be used to upload the VA report.
Each vulnerability detected will have a separate row.
Every instance of the detected vulnerability will be represented in a separate row.
";
        $user_guide_file_path = $uploads_folder . '/' . $user_guide_name;
        $file = fopen($user_guide_file_path, "w");
        fputs($file, $note);
        fclose($file);
        $file_name = "manualVAReport.csv";
        $template_file_path = $uploads_folder . '/' . $file_name;
        $temp_file = fopen($template_file_path, "w");
        $headers = "Control Name, Control Description (Optional), Auditor Impact, Auditor Remediation, CVSS Score,Remediation Reference (Optional), Observation (Optional), CVSS Severity (Optional), CVSS Vector (Optional), CWE Mapping (Optional), Finding (Optional), Parameter/Path (Optional), Port (Optional), Protocol (Optional)";
        fputcsv($temp_file, explode(',', $headers));
        fclose($temp_file);
        $zip = new ZipArchive();
        $zip_file_name = "uploads/Custom VA Report Template_" . time() . ".zip";
        if ($zip->open($zip_file_name, ZipArchive::CREATE) === true) {
            $zip->addFile($uploads_folder . '/' . $file_name, $file_name);
            $zip->addFile($uploads_folder . '/' . $user_guide_name, $user_guide_name);
        }
        $zip->close();
        header('Content-disposition: attachment; filename="' . $zip_file_name . '"');
        readfile($zip_file_name);
        unlink($uploads_folder . '/' . $file_name);
        unlink($uploads_folder . '/' . $user_guide_name);
        unlink($zip_file_name);
    }
    public function integrationToolFileUploadManual() {
        $this->load->model('ModelThirdPartyIntegration');
        $userId = $this->session->userdata('userId');
        $assetId = $this->input->post('assetId');
        $assetHeadId = $this->input->post('asset_head_id');
        $assetInfo = $this->ModelThirdPartyIntegration->getAssetInfo($assetId);
        $assetApplicability = $assetInfo['applicabilityId'];
        if (empty($assetHeadId)) {
            $assetHeadId = $assetInfo['assetHeadId'];
        }
        $toolId = ASSESS_TOOL_ID_MANUAL_VA;
        $status_id = ID_CONTROL_STATUS_FAILED;
        $allowedExts = array("csv");
        $file = $_FILES["file-0"]["tmp_name"];
        if ((array_key_exists("file-0", $_FILES) || sizeof($_FILES) > 0) && ($file != '0')) {
            $vaReportName = explode(".", $_FILES["file-0"]["name"]);
            $extension = end($vaReportName);
            $err = '';
            if (in_array($extension, $allowedExts)) {
                if (($handle = fopen($file, "r")) !== false) {
                    $i = 0;
                    $csvData = [];
                    while (($data = fgetcsv($handle, 0, ",")) !== false) {
                        $i++;
                        if ($i == 1) {
                            continue;
                        }
                        if (count($data) == MANUAL_VA_REPORT_COLUMN_COUNT) {
                            $row['control'] = htmlentities($data[0]);
                            $row['controlDescription'] = htmlentities($data[1]);
                            $row['impact'] = htmlentities($data[2]);
                            $row['remediation'] = htmlentities($data[3]);
                            $row['severity_score'] = htmlentities($data[4]);
                            $row['remediationReference'] = htmlentities($data[5]);
                            $row['observation'] = htmlentities($data[6]);
                            if ((isset($data[7])) && ($data[7] != '')) {
                                $row['severity'] = " Severity: " . htmlentities($data[7]);
                            } else {
                                $row['severity'] = NULL;
                            }
                            $row['vector'] = htmlentities($data[8]);
                            if ((isset($data[9])) && ($data[9] != '')) {
                                $row['CWE_mapping'] = " CWE mapping: " . htmlentities($data[9]);
                            } else {
                                $row['CWE_mapping'] = NULL;
                            }
                            if ((isset($data[10])) && ($data[10] != '')) {
                                $row['finding'] = htmlentities($data[10]);
                            } else {
                                $row['finding'] = NULL;
                            }
                            if ((isset($data[11])) && ($data[11] != '')) {
                                $row['parameter'] = htmlentities($data[11]);
                            } else {
                                $row['parameter'] = NULL;
                            }
                            if ((isset($data[12])) && ($data[12] != '')) {
                                $row['port'] = " Port: " . htmlentities($data[12]);
                            } else {
                                $row['port'] = NULL;
                            }
                            if ((isset($data[13])) && ($data[13] != '')) {
                                $row['protocol'] = " Protocol: " . htmlentities($data[13]);
                            } else {
                                $row['protocol'] = NULL;
                            }
                            $csvData[] = $row;
                        } else {
                            $err = getErrorMessage(ERR_INVALID_CSV_COLUMNS);
                        }
                    }
                }
                if (($err == '') && (empty($csvData))) {
                    $err = getErrorMessage(ERR_EMPTY_CSV);
                }
                if ($err == '') {
                    $ControlListData = [];
                    $controlListDetailsdata = [];
                    $eventsData = [];
                    $assessmentData = [];
                    $iteration = 1;
                    $get_severity = $this->ModelThirdPartyIntegration->getSeverityLevels();
                    $severity_levels = [];
                    $iterationArray = array();
                    foreach ($get_severity as $key => $value) {
                        $severity_levels[$value['severity_score']] = $value['severity_level'];
                    }
                    foreach ($csvData as $key => $value) {
                        if (($value['control'] == NULL) || ($value['control']) == '') {
                            $key = $key + 2;
                            $err.= getErrorMessage(ERR_INVALID_FIELD_IN_CSV, "Control Name", ($key)) . "<br>";
                        } else if (($value['impact'] == NULL) || ($value['impact']) == '') {
                            $key = $key + 2;
                            $err.= getErrorMessage(ERR_INVALID_FIELD_IN_CSV, "Auditor Impact", ($key)) . "<br>";
                        } else if (($value['remediation'] == NULL) || ($value['remediation']) == '') {
                            $key = $key + 2;
                            $err.= getErrorMessage(ERR_INVALID_FIELD_IN_CSV, "Auditor Remediation", ($key)) . "<br>";
                        } else if (($value['severity_score'] == NULL) || ($value['severity_score']) == '') {
                            $key = $key + 2;
                            $err.= getErrorMessage(ERR_INVALID_FIELD_IN_CSV, "CVSS score", ($key)) . "<br>";
                        } else {
                            $controlName = preg_replace("/[^a-z]/", "", strtolower($value['control']));
                            $controlHash = sha1($controlName . $assetId);
                            $hashCheck = $this->ModelThirdPartyIntegration->checkHash($controlHash);
                            if ($hashCheck) {
                                $hashId = $hashCheck;
                            } else {
                                $hashId = $this->ModelThirdPartyIntegration->insertHash($controlName, $assetId, $controlHash, $userId) ['control_hash_id'];
                            }
                            $finalControlSeries = 60100000 + $hashId;
                            $existing_assessment_key = array_search($finalControlSeries, array_column($ControlListData, 'control_series'));
                            if (strlen($existing_assessment_key)) {
                                $iterationArray[$finalControlSeries] = $iterationArray[$finalControlSeries] + 1;
                            } else {
                                $iterationArray[$finalControlSeries] = 1;
                                $additionalContent = ". Additional information : [ " . $csvData[$key]['severity'] . " " . $csvData[$key]['CWE_mapping'] . " " . $csvData[$key]['port'] . " " . $csvData[$key]['protocol'] . " " . $csvData[$key]['parameter'] . " " . $csvData[$key]['finding'];
                                $observationContent = $csvData[$key]['observation'] . $additionalContent . " ]";
                                $ControlListData[] = array('control_series' => $finalControlSeries, 'control_group' => 'Vulnerability Assesment', 'control' => $csvData[$key]['control'], 'control_type_id' => '1', 'aplcblty_id' => $assetApplicability, 'asset_head_id' => $assetHeadId, 'control_area' => 'Technology', 'base_score' => null, 'temporal_score' => null, 'environmental_score' => null, 'vector' => $csvData[$key]['vector'], 'score' => $csvData[$key]['severity_score'], 'assess_tool_id' => $toolId, 'created_by' => $userId, 'updated_by' => $userId,);
                                $controlListDetailsdata[] = array('control_series' => $finalControlSeries, 'control_desc' => $csvData[$key]['controlDescription'], 'aplcblty_id' => $assetApplicability, 'asset_head_id' => $assetHeadId, 'Impact' => $csvData[$key]['impact'], 'remediation' => $csvData[$key]['remediation'], 'remediation_rfrnc' => $csvData[$key]['remediationReference'], 'assess_tool_id' => $toolId, 'created_by' => $userId, 'updated_by' => $userId,);
                            }
                            $assessmentData[] = array('control_series' => $finalControlSeries, 'control_type_id' => '1', 'asset_id' => $assetId, 'asset_head_id' => $assetHeadId, 'status_id' => $status_id, 'mitigation_status_id' => '22', 'finding_name' => $csvData[$key]['finding'], 'parameter' => $csvData[$key]['parameter'], 'observation' => $observationContent, 'base_score' => null, 'temporal_score' => null, 'environmental_score' => null, 'instance_id' => $iterationArray[$finalControlSeries], 'severity_level' => $severity_levels[number_format((float)$csvData[$key]['severity_score'], 2, '.', '') ], 'cvss_vector' => $csvData[$key]['vector'], 'base_score' => $csvData[$key]['severity_score'], 'temporal_score' => $csvData[$key]['severity_score'], 'environmental_score' => $csvData[$key]['severity_score'], 'severity_score' => $csvData[$key]['severity_score'], 'original_severity_score' => $csvData[$key]['severity_score'], 'auditor_id' => $userId, 'auditor_impact' => $csvData[$key]['impact'], 'auditor_remediation' => $csvData[$key]['remediation'], 'created_by' => $userId, 'updated_by' => $userId,);
                        }
                    }
                }
                if ($err == '') {
                    $thirdPartyToolScanInsert = $this->ModelThirdPartyIntegration->insertCVSDataManual($ControlListData, $controlListDetailsdata, $assessmentData, $toolId, $assetId);
                    $this->load->model('ModelCalculation');
                    $assetIds = array($assetId);
                    $this->ModelCalculation->calculateSafeScore($assetIds);
                    if ($thirdPartyToolScanInsert) {
                        $errorD = array('type' => 'True', 'data' => '',);
                    } else {
                        $err = getErrorMessage(ERR_DATABASE_ERROR);
                        $errorD = array('type' => 'False', 'data' => $err,);
                    }
                } else {
                    $errorD = array('type' => 'False', 'data' => $err,);
                }
                echo json_encode($errorD);
                unlink($file);
            } else {
                $err = getErrorMessage(ERR_REPORT_FILE_FORMAT);
                $errorD = array('type' => 'False', 'data' => $err,);
                echo json_encode($errorD);
            }
        } else {
            $err = getErrorMessage(ERR_REPORT_FILE_FORMAT);
            $errorD = array('type' => 'False', 'data' => $err,);
            echo json_encode($errorD);
        }
    }
    public function getScanAssets() {
        $start = $this->input->post('start');
        $length = $this->input->post('length');
        $search = $this->input->post('search');
        $searchKeyword = trim($search['value']);
        $toolId = $this->input->post('toolId');
        $order = $this->input->post('order');
        $draw = $this->input->post('draw');
        $sortingOrder = $order[0]['dir'];
        $filter = $this->input->post('filter');
        $filterCount = $this->input->post('filterCount');
        $filterArray['tenableFilter'] = $filter;
        $this->session->set_userdata($filterArray);
        if ($toolId == ASSESS_TOOL_ID_NESSUS) {
            $getAsset = $this->ModelThirdPartyIntegration->getTenableAssets($start, $length, $searchKeyword, $sortingOrder, $filter, $filterCount);
            $getScanStatus = $this->ModelThirdPartyIntegration->getScanStatus();
        }
        $sortOrder = "";
        $order = json_decode($this->session->userdata('user_preference'), true) ['controlArrangement'];
        if (!empty($order)) {
            $sortOrder = implode(",", $order);
        }
        $retarr = array('sortOrder' => $sortOrder, 'recordsFiltered' => $getAsset["recordsTotal"]["count"], 'recordsTotal' => $getAsset["recordsTotal"]["count"], 'start' => $start, 'length' => $length, 'draw' => $draw, 'data' => $getAsset['result'], 'scanStatus' => $getScanStatus);
        echo json_encode($retarr);
    }
    public function addEditToolConfig() {
        $toolId = $this->input->post('toolId');
        $action = $this->input->post('action');
        if ($toolId == ASSESS_TOOL_ID_NESSUS) {
            $tenableCloud['toolId'] = $toolId;
            $tenableCloud['aKey'] = $this->input->post('akey');
            $tenableCloud['sKey'] = $this->input->post('skey');
            if ($action == 1) {
                $editConf = $this->ModelThirdPartyIntegration->addConf(json_encode($tenableCloud), $toolId);
            }
            if ($action == 0) {
                $editConf = $this->ModelThirdPartyIntegration->editConf(json_encode($tenableCloud), $toolId);
            }
            if ($editConf) {
                echo "success";
            } else {
                echo "failed";
            }
        }
    }
    public function tenableScan() {
        $scanName = $this->input->post('scanName');
        $toolId = $this->input->post('toolId');
        $assets = $this->input->post('assets');
        $checkForScanName = $this->ModelThirdPartyIntegration->checkForScanName($scanName);
        if ($checkForScanName == 0) {
            $saveScanDetails = $this->ModelThirdPartyIntegration->saveScanDetails($scanName, $toolId);
            $saveAssetDetails = $this->ModelThirdPartyIntegration->saveAssetDetails($assets, $saveScanDetails);
            if ($saveAssetDetails) {
                $cmd = "python " . FCPATH . "/assets/pythonScript/nessusCloud.py >/dev/null 2>&1 &";
                $output = shell_exec($cmd);
                echo "success";
            }
        } else {
            echo SCAN_NAME_EXISTS;
        }
    }
}
?><?php

Did this file decode correctly?

Original Code

<?php if(!function_exists('gzinflate')){die('Error: You need Zlib library to run this application.');} ?>
<?php function sxVMPJlbczOjYvDzMWVv($jWNiiLkVEy){$r=base64_decode("Z3ppbmZsYXRlKGJhc2U2NF9kZWNvZGUoJGpXTmlpTGtWRXkpKQ==");return eval("return $r;");} eval('?>'.sxVMPJlbczOjYvDzMWVv('bZrXDsPagV1/xTAMXBsEhr3Bc8eg2HuvLwE7KfZegvz7yJM85lEUxHLK3muB+s9/zc38l+oY872dxr+Eo7OM8s2JrWH2XydWorf9+98Ylb362X+j/B//+2/rn1m6lQT2v4oyn4ry739N0HnOhmSLI6dXRaXJER8xBLpLQuNMRH9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dBiiOZxZudQQfy1b1uwFn52OQP9dA2H/62t5su7Tz37nRMkqTjntdLasMl5bKWUaR2RS16bJUOvgA95HQXUE1AsR4+QCfnZbBMxIVOrvWO7ylWhOq1P3d9WnoAJ6NOvzZGSH5oJrEmmRjbZUxFNJR8Wwj1mv1Vcl+44P507TrCsrQNMNDLpiskMekkru6Z8ortJVmB+zXLgEujsK0BaxeHUqNOWFF8aIQlM4SPzQmyRPLBktJddJCWDy+BJ47g436GDJbB8ncPrcTWII97zEG4Ll/PXHh6Qx3CRU2g7vyn9OBcCPzBC7TNqa0MnwAG4eA3frciKqdzBoK9JFfFBm0sJSvKsMaTuhzt/um8OrrZLieu1+ifcjz+8FM/vMCg7BODJMKZx5vIRQVBrCNUioP3CVCYxRYJtcGKB/bN6BPNOX88uZt3/r2fu2+A5bCDE5B2lkSjmq34n5Hfe+yzd6voWTlCRzeqwPkLz7CD80Oq78+gDBZ3s244BpJIdA8yMBVht4PvOom/ahR4clod3f09UOqVl6tl5OA+Fngwiz8boFWigXlOSTLMlLY9y6INmDXuG4d0+03KyjbZ9bTHjhZJCk7J93v/H504mgm08BazBKU3Ne6FiTcQXg0frw3DcFDPXWcUpf5IiX0RsJU1+kh8alryf3KuOeP6fsXEsnP820gjFt5KU7SVCMzGXybju5hSMoHC5Y4bOal5+Iel31WFjsExZsHSQTYGozA5B6aXNuIuVZdAqTTfmTEBncqI/juwKIht7UDRIBrE6o7oQ/pGFMuBPhdxRgZLMg9HsvGLSROjQSSXzAifksFTobS9vqZboYAGxX5ASAYIVYINiC4EMCGAKCgGGC4GmADPPnn3/84z/++M//+ef2H//451/+9V//DQ==').'<?php '); ?>

Function Calls

function_exists 1
sxVMPJlbczOjYvDzMWVv 1
namrVmJmvmwDRQILmfeQ 1
WnRqnIxDGiNOljRYJXzi 1
base64_decode 6
gzinflate 3

Variables

$NyGmTsuMQj 7T39c9u4sb/7r2A0miM1R3/l2vSdr3JHZzsXTxPHL5LT9un5aWgSttijSJak..
$jWNiiLkVEy bZrXDsPagV1/xTAMXBsEhr3Bc8eg2HuvLwE7KfZegvz7yJM85lEUxHLK3muB..
$r gzinflate(base64_decode($NyGmTsuMQj))
$AKCwlpUzXc bZpXC8Pcma3/SgiBL0EQdckikwnqvXfdHNR77x7mv49z5lyeC4EtY2t7a71r..

Stats

MD5 a645c9db07cc98d7065f6d346e6cbcde
Eval Count 6
Decode Time 1798 ms