Skip to content
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

POST request with Content-Length: 0 #16

Open
cfglife opened this issue Jun 19, 2017 · 0 comments
Open

POST request with Content-Length: 0 #16

cfglife opened this issue Jun 19, 2017 · 0 comments

Comments

@cfglife
Copy link

cfglife commented Jun 19, 2017

Hi,

We've implemented an application firewall in front of an application where we've used the sessionTimeout script. One of the anomalous behaviors that triggers a block rule on the firewall is POST requests with a content-length of 0. Apparently this is something that denial of service attacks may do?

The $.ajax() call made when a user clicks the keep-alive button also sends a POST with 0 bytes of content, so the firewall is now blocking our users from using the sessionTimeout script.

It would be easy to modify the script to send some small content in the POST so that we can keep the firewall rule enabled to stop actual suspicious requests, but that kind of change would be undesirable for most users. But would you consider adding some more configuration options to the plugin, so that developers could specify additional attributes of the $.ajax() call? That could benefit everyone, in addition to letting us solve our specific firewall problem by defining some contents for the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant