From a19a95f2af5222d552e079569c53e70432094848 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Fri, 24 Jul 2020 13:16:36 -0400 Subject: [PATCH] block $5 donations on main donation page this is the common factor for a recent wave of fraud attacks against our site. --- CRM/Core/Payment/TrustCommerce.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Core/Payment/TrustCommerce.php b/CRM/Core/Payment/TrustCommerce.php index 55e0d73..728404b 100644 --- a/CRM/Core/Payment/TrustCommerce.php +++ b/CRM/Core/Payment/TrustCommerce.php @@ -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; } -- 2.25.1