Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Honza Pobořil’s picture

Component: Code » Date Repeat API
klonos’s picture

While this will prevent bad things from happening, it must be stressed that whatever fix we come up with here (possibly a hard-coded safe value) will only be temporary and should be reverted once #1901936: Create only a minimum amount (TBD) of repeats and set the rest to be created on successive cron runs is actually implemented. We should consider making this value configurable either through the UI or by exposing a variable for it.

MiroslavBanov’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
2.62 KB

Adding a patch to have the option to limit the date repeats for a date repeat field.

Status: Needs review » Needs work

The last submitted patch, 3: many_repeats_problem-date-2051033-3.patch, failed testing.

klonos’s picture

MiroslavBanov’s picture

Status: Needs work » Needs review
FileSize
4.12 KB

The errors were because of missing default value for the settings. Corrected this problem, and did some adjustments to the UI.

BTW, I notice that the "years_back_and_forward" fieldset is no longer used, and should have been removed in in revision 6d10f0e, back in 2011.

klonos’s picture

...remember to hide old patches when uploading new ones ;)

vijaycs85’s picture

Issue tags: +Needs tests, +sprint

I'm not very sure about this option/requirement, however if we need to take it in, we might need to add test(with test-only fail patch)for the new functionalities by this patch.

MiroslavBanov’s picture

Status: Needs review » Needs work

@vijaycs85
Then I guess issue needs more work.
@ Next person
Along with your patches, please provide some convincing arguments the change is needed :p .

Michael_Lessard_micles.biz’s picture

Personally, I would feel safer with a Permission for Repeating Dates.

If this were possible, I would allow only recognized users (specific Role) to set Repeating dates on my media, in order to avoid an "Authenticated" abuser posting 100 times on the calendar in one single post.

On the other hand, the superuser or admins can delete the entire thing with one post also.

Just my two cents. I presume adding a Permission is an easy tweak.

Michael_Lessard_micles.biz’s picture

To the maintainers of this very useful module :

I am a bit taken aback that we would need to add arguments about how critical this issue is or that it is not solved since. If it is somewhat fixed or fixable now, sorry, I have not noticed.

EXAMPLES :

a) Typical abuse with just nodes : a person hides her IP and attempts to post many nodes or comments. This is a somewhat "complicated" abuse (requires scripts, etc.) and most webmasters have many systems set-up in Drupal to avoid this (CAPTCHA, Honeypot, etc.).

b) Easiest abuse ever : a person hides her IP and creates one single event repeating itself daily for many months or more. It is also easy to remove, but your calendar or your media looks rather bad and amateurish for a while. There is practically no way of stopping this type of abuse where an actual person post just one event. There isn't even a permission set-up to use Date Repeat (the permission that exist now is to allow users to see the repeat rules).

Also note that this abuse can be a simple error by an honest user !

nb: I avoid adding patches that are more or less tested, so this vulnerability persist.