-
Notifications
You must be signed in to change notification settings - Fork 1.7k
POST request is not handled correctly #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello, please send me the http post request. I would like to reproduce it. Also send me your modsecurity.conf and modsecurity debug log level 9. Thanks |
Do you have an
|
Yes. Just did it now. Looks fine. |
Ah, sorry for any confusion. I think the OP in this thread doesn't have an upstream config block, and it is not a ModSecurity error at all but rather a nginx configuration issue. I would suggest that they retest with an upstream block defined ahead of the server block; that should resolve the issue. On Jun 14, 2013, at 12:16 PM, Breno Silva [email protected] wrote:
|
Right. So can i close this ticket ? |
I think so, yes. On Jun 14, 2013, at 12:37 PM, Breno Silva [email protected] wrote:
|
I am getting the same issue with the same versions of Nginx & ModSecurity. I have got an upstream block in my configuration immediately before the server block. The application works as expected when the SecRequestBodyAccess is turned Off but gets the 'no upstream configuration' error if I turn this property on. This seems to indicate that my Nginx configuration is correct and that the problem is being caused only when the request body is being checked by ModSecurity. |
@chaizhenhua not sure if it could be related to module order loading or an arch issue. Any idea ? |
Could it be related to the options that we are using to build Nginx with the ModSecurity module or to folder permissions assigned to the nginx user? We are building ModSecurity from the tarball with './configure --enable-standalone-module' We are then adding this module to nginx with the following configuration params: Hope this helps |
@miwoow can you remove the tailing '/' in |
Hi, I 'm running in to this error too. It doesnt matter if proxy_pass is set or if an upstream block is defined. It happens on any POST request if SecRequestBodyAccess is enabled. Here is a debug capture of the request http://bpaste.net/show/8nFOEuSGjsQL4uwTEGyR/ For testing, I stripped down modsecurity.conf from the owasp-crs rules. |
I am getting the same issue with the same versions of Nginx-1.8.1 & ModSecurity.nginx_refactoring. |
Nginx 1.4.1
ModSecurity 2.7.4
server {
listen 80;
server_name www.xxxx.co;
}
2013/06/07 16:59:34 [debug] 656#0: *4 http init upstream, client timer: 0
2013/06/07 16:59:34 [debug] 656#0: *4 http script copy: ""
2013/06/07 16:59:34 [debug] 656#0: *4 http script copy: ""
2013/06/07 16:59:34 [debug] 656#0: *4 http script copy: "Connection: close^M
"
2013/06/07 16:59:34 [debug] 656#0: *4 http script copy: "Content-Length: "
2013/06/07 16:59:34 [debug] 656#0: *4 http script var: "122"
2013/06/07 16:59:34 [debug] 656#0: *4 http script copy: "^M
"
2013/06/07 16:59:34 [alert] 656#0: *4 no upstream configuration, client: 111.111.111.111, server: blog.xxxx.co, request: "POST /wp-login.php HTTP/1.1", host: "blog.xxxx.co", referrer: "http://blog.xxxx.co/wp-login.php"
It looks like http script engine not parse proxy_*** configure.
The text was updated successfully, but these errors were encountered: