Is it safe if comment out CSRF TOKEN? | Fix Application Error: [0204]
#1
Is it safe if comment out CSRF TOKEN? | Fix Application Error: [0204]
Hello. 
I just installed sentora for my centos 7 vps, installation is successful but when i try to login panel and i got message

"Application Error: [0204] - The form you attempted to submit had an invalid token!"

Fresh Re-installing sentora didn't work for me. Then i found the solution from here (just retake from archive.org) thanks dave Ozoalor from braintem.

Here is the tutorial

Quote:1. Search csfr.class.php

Code:
find / -name "csfr.class.php"


2. Open csfr.class.php (sentora directory= /etc/sentora/panel/dryden/runtime/csfr.class.php) with text editor and Comment out everything in the protect() function like this: Be careful not to comment out the function itself. Just comment out all what is inside.


PHP Code:
static function Protect() {
 
    /*
        if (isset($_POST['csfr_token']) && ($_POST['csfr_token'] == $_SESSION['zpcsfr'])) {
            self::Tokeniser();
            return true;
        }
        $error_html = "<style type=\"text/css\"><!--
            .dbwarning {
                    font-family: Verdana, Geneva, sans-serif;
                    font-size: 14px;
                    color: #C00;
                    background-color: #FCC;
                    padding: 30px;
                    border: 1px solid #C00;
            }
            p {
                    font-size: 12px;
                    color: #666;
            }
            </style>
            <div class=\"dbwarning\"><strong>Application Error:</strong> [0204] - The form you attempted to submit had an invalid token!</p></div>";
        die($error_html);
        */
 
   


That is work for me, but is it safe?
Reply


Messages In This Thread
Is it safe if comment out CSRF TOKEN? | Fix Application Error: [0204] - by Hadhill - 02-23-2018, 08:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Repo update error hostingms 3 8 ,732 02-14-2024, 09:20 AM
Last Post: TGates
apt-get install mod_ssl ERROR CMs222 9 32 ,174 11-11-2022, 09:14 PM
Last Post: zustudios
Sentora debug and error files johnnyp 0 2 ,322 10-27-2022, 06:16 PM
Last Post: johnnyp

Forum Jump:


Users browsing this thread: 1 Guest(s)