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

Signing you up...

Thank you for signing up!

PHP Decode

$JL = json_decode($RP, "\x74\x72\x75\145"); $this->oauthUtility->log_debug..

Decoded Output download

<?         $JL = json_decode($RP, "true"); 
        $this->oauthUtility->log_debug("ReadAuthorizationResponse: accessTokenResponseData" . json_encode($JL)); 
        if (!isset($JL["id_token"])) { 
            goto iG; 
        } 
        $c1 = $JL["id_token"]; 
        $this->oauthUtility->log_debug("ReadAuthorizationResponse: idToken: " . $c1); 
        $this->oauthUtility->setSessionData(OAuthConstants::ID_TOKEN, $c1); 
        $this->oauthUtility->setAdminSessionData(OAuthConstants::ID_TOKEN, $c1); 
        $this->oauthUtility->log_debug("ReadAuthorizationResponse: idToken stored: " . $c1); 
        iG: 
        $J3 = $jq["user_info_endpoint"]; 
        if (!($J3 == NULL || $J3 == '') && isset($JL["access_token"])) { 
            goto nz; 
        } 
        if (isset($JL["id_token"])) { 
            goto oJ; 
        } 
        if (isset($JL["error"])) { 
            goto Ft; 
        } 
        $this->oauthUtility->log_debug("ReadAuthorizationResponse: accessTokenResponseData", $JL); 
        $SW = false; 
        $DH = false; 
        $DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->setrelaystate); 
        if ($DH) { 
            goto WL; 
        } 
        $Ba = $this->oauthUtility->getSessionData(OAuthConstants::USERNAME); 
        $mU = $this->oauthUtility->getSessionData(OAuthConstants::PASSWORD); 
        try { 
            $KA = $this->customerAccountManagement->authenticate($Ba, $mU); 
        } catch (\Exception $zQ) { 
            $this->messageManager->addErrorMessage("You did not sign in correctly or your account is temporarily disabled."); 
            return $this->getResponse()->setRedirect($this->oauthUtility->getBaseUrl() . "customer/account/login")->sendResponse(); 
        } 
        $this->session->setCustomerDataAsLoggedIn($KA); 
        $this->session->regenerateId(); 
        return $this->getResponse()->setRedirect($this->oauthUtility->getBaseUrl())->sendResponse(); 
        WL: 
        return $this->getResponse()->setBody("Invalid response. Please try again.|M002. User Info Responce Data is empty."); 
        goto NW; 
        nz: 
        $this->oauthUtility->log_debug("ReadAuthorizationResponse: accessTokenResponseData['access_token'] is set"); 
        $CA = $JL["access_token"]; 
        $this->oauthUtility->log_debug("ReadAuthorizationResponse: accessToken: " . $CA); 
        $this->oauthUtility->log_debug("ReadAuthorizationResponse: userInfoURL: " . $J3); 
        if (!($J3 == NULL || $J3 == '')) { 
            goto h5; 
        } 
        return $this->getResponse()->setBody("Invalid response. Please enter User Info URL."); 
        h5: 
        $zf = "Bearer " . $CA; 
        $lR = ["Authorization: {$zf}"]; 
        $n8 = Curl::mo_send_user_info_request($J3, $lR); 
        $iK = json_decode($n8, "true"); ?>

Did this file decode correctly?

Original Code

       $JL = json_decode($RP, "\x74\x72\x75\145");
        $this->oauthUtility->log_debug("\122\x65\141\144\101\x75\164\x68\157\x72\151\172\141\164\151\157\156\122\x65\x73\160\157\156\163\x65\x3a\x20\141\143\143\x65\163\163\x54\x6f\153\x65\x6e\122\145\x73\160\157\x6e\163\145\104\x61\x74\x61" . json_encode($JL));
        if (!isset($JL["\151\x64\137\164\157\153\x65\x6e"])) {
            goto iG;
        }
        $c1 = $JL["\x69\144\x5f\x74\157\153\145\x6e"];
        $this->oauthUtility->log_debug("\x52\145\x61\x64\101\x75\x74\150\157\162\x69\x7a\141\x74\x69\x6f\156\x52\x65\x73\x70\x6f\x6e\163\x65\72\x20\x69\144\124\x6f\x6b\145\156\x3a\40" . $c1);
        $this->oauthUtility->setSessionData(OAuthConstants::ID_TOKEN, $c1);
        $this->oauthUtility->setAdminSessionData(OAuthConstants::ID_TOKEN, $c1);
        $this->oauthUtility->log_debug("\122\x65\x61\x64\x41\165\x74\150\x6f\162\151\x7a\x61\164\x69\x6f\156\122\x65\163\x70\x6f\x6e\x73\x65\72\40\x69\144\x54\157\x6b\145\x6e\40\163\164\157\x72\x65\144\x3a\40" . $c1);
        iG:
        $J3 = $jq["\x75\x73\145\162\137\x69\156\x66\x6f\x5f\145\156\144\160\157\151\x6e\164"];
        if (!($J3 == NULL || $J3 == '') && isset($JL["\x61\143\143\145\163\x73\x5f\164\x6f\153\x65\156"])) {
            goto nz;
        }
        if (isset($JL["\x69\144\x5f\x74\157\x6b\x65\x6e"])) {
            goto oJ;
        }
        if (isset($JL["\145\162\162\157\x72"])) {
            goto Ft;
        }
        $this->oauthUtility->log_debug("\x52\x65\x61\x64\x41\x75\164\x68\157\162\x69\x7a\141\164\151\x6f\156\122\x65\x73\x70\157\156\163\x65\x3a\x20\141\143\143\x65\x73\163\124\157\153\x65\156\x52\145\x73\x70\x6f\x6e\x73\x65\104\x61\x74\x61", $JL);
        $SW = false;
        $DH = false;
        $DH = $this->oauthUtility->checkIfFlowStartedFromBackend($this->setrelaystate);
        if ($DH) {
            goto WL;
        }
        $Ba = $this->oauthUtility->getSessionData(OAuthConstants::USERNAME);
        $mU = $this->oauthUtility->getSessionData(OAuthConstants::PASSWORD);
        try {
            $KA = $this->customerAccountManagement->authenticate($Ba, $mU);
        } catch (\Exception $zQ) {
            $this->messageManager->addErrorMessage("\131\157\165\40\x64\151\x64\40\156\x6f\x74\40\163\151\x67\156\40\151\x6e\x20\143\x6f\x72\x72\x65\x63\164\154\x79\40\x6f\162\40\x79\157\165\x72\x20\141\x63\x63\x6f\x75\x6e\x74\40\151\x73\40\164\x65\x6d\160\157\x72\141\162\x69\154\171\x20\144\151\163\x61\142\154\145\x64\56");
            return $this->getResponse()->setRedirect($this->oauthUtility->getBaseUrl() . "\143\165\x73\164\157\155\x65\x72\x2f\x61\x63\x63\x6f\165\x6e\x74\x2f\x6c\157\147\x69\x6e")->sendResponse();
        }
        $this->session->setCustomerDataAsLoggedIn($KA);
        $this->session->regenerateId();
        return $this->getResponse()->setRedirect($this->oauthUtility->getBaseUrl())->sendResponse();
        WL:
        return $this->getResponse()->setBody("\x49\156\166\141\x6c\x69\144\x20\x72\145\x73\x70\x6f\x6e\163\145\x2e\40\120\154\x65\141\x73\x65\40\x74\x72\x79\x20\x61\x67\x61\x69\x6e\56\x7c\x4d\60\60\62\x2e\x20\125\x73\x65\x72\x20\x49\156\x66\157\x20\122\x65\163\160\157\156\x63\x65\x20\104\x61\x74\141\40\151\x73\40\x65\x6d\x70\x74\171\56");
        goto NW;
        nz:
        $this->oauthUtility->log_debug("\x52\145\x61\x64\x41\165\164\150\157\162\x69\172\x61\x74\151\x6f\156\122\x65\163\160\x6f\156\163\145\72\x20\141\x63\x63\145\163\x73\x54\157\x6b\145\156\122\145\163\160\157\156\163\145\104\x61\x74\x61\133\47\141\x63\x63\x65\163\x73\137\164\x6f\x6b\145\x6e\47\x5d\40\151\x73\40\163\x65\164");
        $CA = $JL["\x61\143\x63\145\163\x73\137\x74\x6f\153\145\156"];
        $this->oauthUtility->log_debug("\x52\145\x61\x64\101\x75\164\x68\x6f\162\x69\172\141\x74\x69\x6f\156\122\145\x73\160\157\156\x73\145\72\40\x61\143\x63\x65\x73\163\124\157\x6b\145\x6e\72\x20" . $CA);
        $this->oauthUtility->log_debug("\122\145\141\144\101\165\164\x68\157\x72\x69\172\141\164\x69\157\x6e\122\145\x73\160\157\156\x73\145\x3a\x20\165\x73\145\x72\x49\x6e\x66\x6f\125\122\x4c\x3a\40" . $J3);
        if (!($J3 == NULL || $J3 == '')) {
            goto h5;
        }
        return $this->getResponse()->setBody("\x49\x6e\x76\x61\154\x69\x64\x20\x72\x65\163\160\157\156\163\x65\x2e\x20\x50\154\x65\141\163\145\40\145\156\x74\145\162\x20\x55\x73\x65\x72\40\111\156\x66\x6f\40\125\122\x4c\56");
        h5:
        $zf = "\x42\145\141\x72\145\162\40" . $CA;
        $lR = ["\x41\165\164\x68\x6f\x72\151\172\x61\164\x69\157\156\x3a\40{$zf}"];
        $n8 = Curl::mo_send_user_info_request($J3, $lR);
        $iK = json_decode($n8, "\x74\x72\165\145");

Function Calls

None

Variables

None

Stats

MD5 cc4218566baa15e6728895acf343a61b
Eval Count 0
Decode Time 67 ms