Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


public function execute(Observer $Z5)
    {
        $this->spUtility->log_debug("in RedirectToIdpObserver.php");
        $Gd = $this->urlBuilder->getCurrentUrl();
        if (!(strpos($Gd, "mospsaml/actions/spObserver") !== false)) {
            goto D5;
        }
        $this->spUtility->log_debug("Skipping auto-redirect - SAML processing in progress");
        return;
        D5:
        $this->spUtility->log_debug("Customer Session Debug Info:");
        $this->spUtility->log_debug("Customer Session ID: " . $this->customerSession->getSessionId());
        $this->spUtility->log_debug("Customer isLoggedIn: " . ($this->customerSession->isLoggedIn() ? "true" : "false"));
        $this->spUtility->log_debug("Customer ID: " . ($this->customerSession->getCustomerId() ?: "null"));
        $this->spUtility->log_debug("Customer Data: " . json_encode($this->customerSession->getCustomerData()));
        $this->spUtility->log_debug("Session Data: " . json_encode($this->customerSession->getData()));
        $P_ = $this->getCurrentWebsite();
        $as = $this->getWebsiteIds();
        $X8 = $this->spUtility->isBlank($as) ? array() : json_decode($as);
        $aC = $this->spUtility->checkIfFlowStartedFromBackend($Gd);
        $fF = false;
        if (!(!$this->spUtility->isBlank($X8) || $aC)) {
            goto vx;
        }
        if ($aC) {
            goto yC;
        }
        foreach ($X8 as $ML => $zJ) {
            if (!($P_ == $ML)) {
                goto YY;
            }
            $fF = true;
            YY:
            es:
        }
        hR:
        goto XW;
        yC:
        $fF = true;
        XW:
        vx:
        if (!$fF) {
            goto gc;
        }
        $zY = array_keys($this->request->getParams());
        $Kt = array_intersect($zY, $this->requestParams);
        try {
            if (!$this->checkIfUserShouldBeRedirected($Gd)) {
                goto wZ;
            }
            $this->spUtility->log_debug("RedirectToIDPObserver : checkIfUserShouldBeRedirected is true: backdoor not enabled");
            $IN = $this->spUtility->getStoreConfig(SPConstants::AUTO_REDIRECT_APP);
            $Z5->getControllerAction()->getResponse()->setRedirect($this->spUtility->getSPInitiatedUrl() . $IN);
            wZ:
        } catch (\Exception $n_) {
            $this->messageManager->addErrorMessage($n_->getMessage());
            $this->logger->debug($n_->getMessage());
        }
        gc:
    }



© 2023 Quttera Ltd. All rights reserved.