Privacy Friendly Captcha
website_altcha · OCA/website
-
Security10/251 grave, 0 minor
-
Activity25/25Last human commit 2 months ago
-
Required by20/252 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Security warnings
website— Adds credential fields (altcha_private_key) with no `groups=` to 'website', which every user (portal/public included) can read under core's access rights: they can read them over RPC. Restrict the fields with `groups=` (e.g. base.group_system). CWE-200. acl-public-read-secret
Found by automated static analysis: these patterns are usually risky, but only a manual review of the module can confirm a real issue. Methodology
Migration considerations
AltchaKey— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module allows to use a Captcha System completly handled by Odoo.
It relies on Altcha (https://altcha.org), an OpenSource captcha alternative.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
demo_page_view |
demo_page_view | ir.ui.view | qweb | New |
res_config_settings_view_form |
res.config.settings.view.form.inherit.cookiefirst | res.config.settings | form | Inherits website.res_config_settings_view_form |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/altcha |
AltchaController.generate_altcha_challenge |
public | http | ALL | sudo website |
Models touched 4
-
expires_atDatetimerequired=True -
keyCharrequired=True -
usedBooleandefault=False
No public methods.
No new fields.
Public methods (1)-
get_frontend_session_info(self)@api.model
-
altcha_algorithmSelectionreadonly=Falserelated='website_id.altcha_algorithm' -
altcha_costIntegerreadonly=Falserelated='website_id.altcha_cost' -
altcha_enabledBooleancompute='_compute_altcha_enabled'help='Enable Altcha functionality on the website.'readonly=Falsestring='Enable Altcha' -
altcha_keyCharreadonly=Falserelated='website_id.altcha_key' -
altcha_private_keyCharreadonly=Falserelated='website_id.altcha_private_key' -
altcha_timeoutIntegerreadonly=Falserelated='website_id.altcha_timeout'
No public methods.
-
altcha_algorithmSelectiondefault='PBKDF2/SHA-512'selection=<expr> -
altcha_costIntegerdefault=5000help='Cost factor for the hashing algorithm.\n For PBKDF2, this is the number of iterations.\n Default is 5000 for PBKDF2/SHA-512.' -
altcha_keyChar -
altcha_private_keyChar -
altcha_timeoutIntegerdefault=5help='Time in minutes before a captcha expires. Default is 5 minutes.'
No public methods.
Loading…