CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Limiting user contributions
Pages: [1]

Author Topic: Limiting user contributions  (Read 991 times)

lucasbaker

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Limiting user contributions
June 08, 2009, 03:24:53 pm
Hello everyone.

I've just recently come across a situation in which one of our client's CiviContribute pages has been used to pass through fraudulent credit card transactions.  While this scenario has been discussed before and implementing reCAPTCHA would be one of the obvious solutions, the client is very much opposed to putting in a CAPTCHA form on the website since the target audience of the site is older individuals who find CAPTCHA very hard to decipher.  Additionally, the client does not want to make the CVV code on the credit card mandatory as this too may cause too much confusion with the users.

Therefore, my question is twofold:  first, is it possible to customize or simplify the appearance of reCAPTCHA to make it easier for older users to decipher.

Second, the client has suggested that we implement a limit on how many times a user may make a donation through the contribution page within a 24 hour period.  Given that the client opposes the use of CAPTCHA and the CVV code to help mitigate the risk of automated form submissions, this would seem to be a possible solution.  However, from what I can determine, there is nothing in place currently that facilitates this functionality.

What would it take to build a function into the CiviContribute module which adds the ability to strictly limit how much a user may donate in a given period?

This is not the best solution, obviously.  But, it is the best solution we can devise under the circumstances.

Just looking for some feedback or ideas in response to this.

Thanks in advance.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Limiting user contributions
June 08, 2009, 04:33:06 pm

hey lucas

1. You might want to check the functionality offered by reCaptcha. I think they also have an audio part that you can use if the visual part is too hard (not sure how easy the audio part is)

2. You can potentially limit the number of contributions per IP by implementing either a drupal 'hook_init' or civicrm's buildForm hook for that specific contribution page. Basically you can store the IP address, number of attempts in a DB table and apply rules based on the data there. You might also want to reset the counter on valid transactions (so folks can donate again)

however, i do think that reCaptcha, CVV and the payment processor fraud detection are the main tools for avoiding fraudulent credit card transactions. Eliminating them from the equation is a big issue

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lucasbaker

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Limiting user contributions
June 08, 2009, 04:49:28 pm
The second suggestion holds some possibility.  I'll need to perform some kind of additional filtering though, since the potential pitfall with using it is that the attack on the site made use of a bot which kept entering random number and expiration date combinations until it hit a valid combination.  Since there was a valid combination entered, it would show up as a "valid" contribution.  The credit card processing company reports to us that over 19,000 transactions occurred, of which only around 20 - 30 were actually authorized.  It is further complicated by the fact that the processing company we're using makes use of a hosted payment solution, so the 19,000+ transactions didn't occur on our server.  Still, we need to try to keep the invalid users from getting that far.

Truth be told, I'm not sure that placing a hard limit on donations in a fixed time period (i.e. 24, 48, 72 hours) is a viable scenario, but we need to explore the option given that the client really wishes to avoid using CAPTCHA.  Apparently, 4 seperate users were unable to enter the correct text comb to proceed to the next screen.  Obviously, we're not trying to make it impossible to make a donation, but we need to do something to mitigate "bot" attacks such as this.

We'd like any solution we do implement to integrate with Drupal/CiviCRM rather than be a hack (which will lock us into the current versions of the software or run the risk of being overwritten the next time an update comes out).

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Limiting user contributions
June 08, 2009, 06:46:58 pm
Some sites will include a field requesting the answer to a question only a human can recognize. Like, "enter the sum of 2 and 5", or "spell out the number that follows five" or "what color is the sky". The Civi interface doesn't have any way to create a field where the value is checked, but that could be handled easily through some javascript in the template file.

It basically becomes an intelligent captcha question.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Limiting user contributions
June 08, 2009, 08:42:23 pm
The colour of the sky is blue - i guess the color of the sky is ble  :P
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Limiting user contributions

This forum was archived on 2017-11-26.