block $5 donations on main donation page
authorAndrew Engelbrecht <andrew@fsf.org>
Fri, 24 Jul 2020 17:16:36 +0000 (13:16 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Fri, 24 Jul 2020 17:16:36 +0000 (13:16 -0400)
this is the common factor for a recent wave of fraud attacks against our
site.

CRM/Core/Payment/TrustCommerce.php

index 55e0d734b472df7d8df19a63bd78308c993eb9e4..728404b86108ecff583e70798a1fdca0fb0d4fa0 100644 (file)
@@ -330,6 +330,10 @@ class CRM_Core_Payment_TrustCommerce extends CRM_Core_Payment {
       error_log("TrustCommerce: _isParamsBlacklisted() triggered by 230 Motley Dr address");
       return TRUE;
     }
+    if($tc_params['amount'] == '500' && $this->_params[contributionPageID] == 14) { // main donation page
+      error_log("TrustCommerce: _isParamsBlacklisted() triggered by $5 donation amount on main donation page");
+      return TRUE;
+    }
     return FALSE;
   }