Repository navigation
Security release. All sites running the HTML Forms plugin alongside ALTCHA should update.
Security
Unauthenticated shortcode execution via the HTML Forms integration
Affected: ALTCHA ≤ 3.6.0 with HTML Forms active, where a form template uses {{url_params.*}}.
To support the [altcha] shortcode inside HTML Forms, the integration applied WordPress do_shortcode() to the fully rendered form HTML (hf_form_html). By that point HTML Forms has already substituted {{url_params.*}} with values from the request URL. Those values are attribute-escaped but keep square brackets, so a visitor could pass any registered shortcode through the URL (e.g. ?name=[gallery ids=42]) and have it executed on page load without authentication.
Impact:
- Information disclosure through core or third-party shortcodes (e.g.
[gallery]rendering private or draft attachments). - Unauthenticated access to shortcode-level vulnerabilities in other installed plugins that would normally require contributor access.
- Possible reflected XSS, depending on the output of the shortcodes installed on the site.
Sites whose HTML Forms templates do not use {{url_params.*}} were not exposed. Other integrations are not affected.
Fix: The blanket do_shortcode() filter has been removed. ALTCHA now expands only its own [altcha] shortcode, and only in the admin-authored form template (hf_form_markup), before HTML Forms substitutes any visitor-supplied values. Other shortcodes in HTML Forms templates are no longer expanded by ALTCHA.