8000 mod-security and paypal IPN is blocked by core rules 960009 · Issue #123 · coreruleset/coreruleset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mod-security and paypal IPN is blocked by core rules 960009 #123

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

Closed
CRS-migration-bot opened this issue May 13, 2020 · 12 comments
Closed

mod-security and paypal IPN is blocked by core rules 960009 #123

CRS-migration-bot opened this issue May 13, 2020 · 12 comments

Comments

@CRS-migration-bot
Copy link

Issue originally created by user rcbarnett-zz on date 2013-10-17 20:40:05.
Link to original issue: SpiderLabs/owasp-modsecurity-crs#123.

CORERULES-69: Missing user agent and others for paypal IPN. I'm sure others with more experience will expand upon this issue

@CRS-migration-bot
Copy link
Author

User rcbarnett-zz commented on date 2013-10-17 20:40:06:

Original reporter: strikehawkecomm

@CRS-migration-bot
Copy link
Author

User rcbarnett-zz commented on date 2013-10-17 20:40:06:

rcbarnett: Please provide an audit log entry so that we can review both the alerts and the full request data.

@CRS-migration-bot
Copy link
Author

User rcbarnett-zz commented on date 2013-10-17 20:40:07:

strikehawkecomm: PayPal IPN Blocked

@CRS-migration-bot
Copy link
Author

User rcbarnett-zz commented on date 2013-10-17 20:40:07:

strikehawkecomm: In osCommerce, Zen-Cart, CRE Loaded, ipn.php receives the IPN notification to alter the db record as paid and show the tns id and payment amount that should match the order amount. I sanitized any reference to the domain or order amounts from the IPN post data from paypal

@CRS-migration-bot
Copy link
Author

User rcbarnett-zz commented on date 2013-10-17 20:40:07:

strikehawkecomm: Attached the audit

@CRS-migration-bot
Copy link
Author

User rcbarnett-zz commented on date 2013-10-17 20:40:08:

strikehawkecomm: Doing a google search, there are a lot of post all over the net about IPN and modsecurity that face the same issue. It should find it's way into the rules, maybe?

@CRS-migration-bot
Copy link
Author

User rcbarnett-zz commented on date 2013-10-17 20:40:08:

rcbarnett: You need to do an exception in a local modsecurity_crs_15_customerules.conf file for the IPN resource -

SecRule REQUEST_METHOD "POST" "chain,phase:1,t:none,nolog,pass"
SecRule REQUEST_FILENAME "@Streq /ipn.php" "ctl:ruleRemoveById=960009"

@CRS-migration-bot
Copy link
Author

User rcbarnett-zz commented on date 2013-10-17 20:40:08:

strikehawkecomm: Maybe in the slr_rules for osCommerce

@CRS-migration-bot
Copy link
Author

User rcbarnett-zz commented on date 2013-10-17 20:40:08:

rcbarnett: Did you test the exception I provided?

@CRS-migration-bot
Copy link
Author

User rcbarnett-zz commented on date 2013-10-17 20:40:09:

rcbarnett: Provided an exception ruleset for IPN transactions.

@CRS-migration-bot
Copy link
Author

User beckspaced commented on date 2014-09-04 13:33:36:

hello ;-)

rcbarnett -> ran into the same issue with paypal IPN being blocked by mod_security.

tried to add your exception ruleset for IPN transactions above but after apache restart i received the following error:

Sep 04 15:22:44 vs2 start_apache2[13292]: AH00526: Syntax error on line 1 of /etc/apache2/mod_security2.d/modsecurity_crs_15_custom_rules.conf:
Sep 04 15:22:44 vs2 start_apache2[13292]: ModSecurity: No action id present within the rule

running mod security 2.8.0 with CRS 2.2.9

any help on how to fix this would be awesome ;-)

thanks & greetings
becki

@CRS-migration-bot
Copy link
Author

User beckspaced commented on date 2014-09-04 13:47:33:

ups ... seems to be that id is mandatory since 2.7

https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#id

add id and change the exception rule to the following did the trick:

SecRule REQUEST_METHOD "POST" "chain,id:99999,phase:1,t:none,nolog,pass"
SecRule REQUEST_FILENAME "@Streq /ipn.php" "ctl:ruleRemoveById=960009"

perhaps this might help someone?

thanks & greetings
becki

theseion added a commit to theseion/coreruleset that referenced this issue Sep 8, 2023
GitHub does not (yet) have the ability to block PRs / issues as
dependencies of other PRs issues. This commit uses
gregsdennis/dependency-action as a simple workaround.

Now, wording like "blocks coreruleset#123" or "depends on coreruleset#123" will add a check
for the completion of the dependent PR / issue.
theseion added a commit that referenced this issue Sep 9, 2023
GitHub does not (yet) have the ability to block PRs / issues as
dependencies of other PRs issues. This commit uses
gregsdennis/dependency-action as a simple workaround.

Now, wording like "blocks #123" or "depends on #123" in
the PR / issue description will add a check
for the completion of the dependent PR / issue.
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
0