The dz plug-in development background prompts an error. this is the php code.
0) {showmessage ('add failed');} else {showmessage ('add failed') ;}}}?>
Template
Error message
Discuz! System Error
Your current access request contains invalid characters and has been denied by the system.
PHP Debug
[Line: 0025] admin. php (discuz_application-> init)
[Line: 0071] source \ class \ discuz \ discuz_application.php (discuz_application-> _ init_misc)
[Line: 0552] source \ class \ discuz \ discuz_application.php (discuz_application-> _ xss_check)
[Line: 0355] source \ class \ discuz \ discuz_application.php (system_error)
[Line: 0023] source \ function \ function_core.php (discuz_error: system_error)
[Line: 0024] source \ class \ discuz \ discuz_error.php (discuz_error: debug_backtrace)
Reply to discussion (solution)
Please post the $ _ SERVER ['request _ URI '] obtained on the php page after your submission.
It should have special characters, <, ", CONTENT-TRANSFER-ENCODING
Please post the $ _ SERVER ['request _ URI '] obtained on the php page after your submission.
It should have special characters, <, ", CONTENT-TRANSFER-ENCODING
This is also prompted when I submit an empty form.
This is not clear. you can only view your $ _ SERVER ['request _ URI '] value.
The error is thrown in source \ class \ discuz \ discuz_application.php. there is a private _ xss_check () method in it. let's take a look.
$ _ SERVER ['request _ URI ']
/Admin. php? Action = plugins & operation = config & do = 23 & identifier = baoming & pmod = fabu
The X2.5 test is correct. check your _ xss_check () method in source \ class \ discuz \ discuz_application.php.
If not, replace
private function _xss_check() {$temp = strtoupper(urldecode(urldecode($_SERVER['REQUEST_URI'])));if(strpos($temp, '<') !== false || strpos($temp, '"') !== false || strpos($temp, 'CONTENT-TRANSFER-ENCODING') !== false) {system_error('request_tainting');}return true;}
Is it true?
Is it true?
I checked that
It seems that the message sent by formhash is an error in acceptance.
It should be a formhash problem, because the original _ xss_check () method is to verify formhash
private function _xss_check() {static $check = array('"', '>', '<', '\'', '(', ')', 'CONTENT-TRANSFER-ENCODING');if(isset($_GET['formhash']) && $_GET['formhash'] !== formhash()) {system_error('request_tainting');}if($_SERVER['REQUEST_METHOD'] == 'GET' ) {$temp = $_SERVER['REQUEST_URI'];} elseif(empty ($_GET['formhash'])) {$temp = $_SERVER['REQUEST_URI'].file_get_contents('php://input');} else {$temp = '';}if(!empty($temp)) {$temp = strtoupper(urldecode(urldecode($temp)));foreach ($check as $str) {if(strpos($temp, $str) !== false) {system_error('request_tainting');}}}return true;}
So let's change it to the _ xss_check () method of X2.5.
Formhash has to be verified on the front end. how can this problem be solved?
Er... limited capabilities, no research, no experience
In addition, according to the discuz error, the code for executing _ xss_check () is not found in the _ init_misc method of discuz_application.php in X2.5.
I don't know what your version is.
If it is earlier, overwrite the discuz_application.php file.
Ah! I am 3.2
In any case, I would like to thank jam00 for posting points.
I have never played such a tall version...