简体   繁体   中英

PHP request blocked in server

While sending a PHP POST request to Apache server, the request is blocked by server. I am getting the forbidden error. This is very specific for some request. In the request i am sending the html data and saving the html data in the MYSQL database. I am using the unix operating system.

I am trying to save some sentence like, process = runtime.exec(""); I am sending the above sentence i am getting the forbidden error, otherwise i am getting the success response.

I think your server set up forbids some URL parameter values. A comparable example (for Struts), that explains why can be found here: https://www.sec-consult.com/files/20120104-0_Apache_Struts2_Multiple_Critical_Vulnerabilities.txt

You could try to trick it with some encoding (I doubt this will work) or substitute the word ".exec(" with something harmless.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM