[5.1] A simple Captcha, which not every AI can solve#42777
[5.1] A simple Captcha, which not every AI can solve#42777Fedik wants to merge 18 commits intojoomla:5.1-devfrom
Conversation
|
Just wrote a mini scraper in Node.js and was easily able to obtain the question and calculate the answer. |
|
If we can't have something useful like a schema plugin in core how can we have this? |
Co-authored-by: jsanders <j53.sanders@gmail.com>
hmhm, yea, some random markup could really be an improvement
You saying it is not a good thing? thank you very much :) |
Co-authored-by: jsanders <j53.sanders@gmail.com>
|
@Fedik I am not saying that at all. Just asking how we can have this and reject other stuff |
|
That a philosophical question, which life throw on us every day :) For now, we do not have "this" also ;) |
|
@brianteeman are you referring about this one #42710 right ? in my view remove all captcha from core +
if our goal is to have a lighter core... anyway always hard to have a common opinion on this " dark matter" imho |
|
Just a suggestion to check the answer by using the onDisplay function, maybe the following is useful? |
|
It already in use within display(), to render input. |
|
@Fedik Thanks for the information. |
|
@C-Lodder lets hack it again now 😉 |
|
Please check whether the plugin is enabled, maybe you unpublish it by accident. |
Fixed. The first two files from the list were not present. I have now added this. |
Yeah, nowaday it hard to do math without calculator 😄 And, as you may noticed, it is random. Sometimes User need to enter a full number, and sometime only remaining digits. |
Completely agree, although this may differ per country. The question is whether such a captcha provides sufficient protection against external digital access by ensuring that only a person with the correct password can open the account? How larger the range of the number to be entered, how smaller the chance of guessing the number. |
|
The riddle updates on each request, and resets on each submit. There also some other "invisible for human" things happens to confuse a regular bot. I do not think someone will brutforce captcha. |
|
I have tested this item 🔴 unsuccessfully on a006b7a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42777. |
|
You can submit the form with any captcha, but there an error message after that. |
|
I have tested this item 🔴 unsuccessfully on a006b7a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42777. |
|
I have tested this item 🔴 unsuccessfully on a006b7a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42777. |
|
I have tested this item ✅ successfully on a006b7a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42777. |
Does it equaly good for |
|
hmhm, I would like to keep 1 "unified" string, |
|
Submitted the password reset form with the captcha blank and got no error message. It redirected to the verification page:
|
|
@Quy does it always happen to you or randomly? |
|
Every time. |
|
hm, no idea, I cannot reset the PW when solution is empty, unless I totaly disable the captcha. |
|
@Quy can you please try add joomla-cms/plugins/captcha/math/src/Provider/MathCaptchaProvider.php Lines 166 to 168 in a006b7a Does you still get redirect, or debug with response? |
|
Here is the response: |
|
Okay, thanks, that is correct. hmhm It should be |
|
It is still not working. I will investigate further to see why. |
|
Thanks. Interesting. |
|
Ah, I found, the validation for "reset pasword" is ignored when Debug is OFF |
|
@Quy please test the PR with debug ON, does it work with it? |
|
It is working now with debug on. |
|
@Fedik Thank you for this contribution. I hope this isn't the end of it, and it still gets a follow-up. |





Summary of Changes
Implementing a simple Math captcha. Independent from external services.
To solve captcha User should do a math (It's a simple addition for now).
Testing Instructions
Go to Exctension => Discovery
Install new plugin, and enable as default captcha (in global config).
Go to password reset (or any other form that use captcha)
Try submit the form without solution, then with valid and invalid values.
Note: for test with "password reset" form need to enable enable Debug in Global configuration.
Actual result BEFORE applying this Pull Request
Nothing
Expected result AFTER applying this Pull Request
Works
Link to documentations
Please select: