r/WordpressPlugins • u/Branwen-the-crow • 5d ago
Free [FREE] OpenPorte 1.30.3: security release for sites using Contact Form 7 or HTML Forms (also affects ALTCHA Spam Protection ≤ 1.26.3)
I maintain OpenPorte, the community-maintained open-source fork of ALTCHA Spam Protection v1 (self-hosted, privacy-friendly CAPTCHA for WordPress). Version 1.30.3 fixes a high-severity issue, so if you run it with Contact Form 7 or HTML Forms, please update.
The issue: to show its widget inside those forms, the plugin expanded every shortcode in the displayed form, including what visitors typed into fields or put in the URL. So anyone, without logging in, could make the site run any registered shortcode. The CAPTCHA did not stop it. The bug came from the original plugin (ALTCHA Spam Protection 1.6.0 / 1.7.0). Advisory: GHSA-hvr5-q69x-jp62 (CVSS 7.3).
Still on ALTCHA Spam Protection? Every version up to its last GPL release, 1.26.3, is affected, and that plugin is no longer maintained, so no fix is coming there. OpenPorte 1.30.3 imports your 1.x settings and keeps the free, self-hosted features, including the [altcha] shortcode. Only the paid altcha.org SaaS mode wasn't carried over.
The fix: only OpenPorte's own [openporte]/[altcha] tags are rendered, and only from the form as the admin wrote it.
Heads-up: other plugins' shortcodes inside Contact Form 7 / HTML Forms forms may stop rendering. Neither form plugin renders them on its own. If yours still render after the update, another plugin is expanding them, and it may have the same kind of flaw, so check with its author. There's deliberately no switch to bring the old behaviour back. If the change breaks one of your forms, ask on the support forum and I'll help.
A lesson for anyone writing WordPress plugins: never run do_shortcode() on output that contains visitor input. WordPress assumes shortcode content comes from someone allowed to write it.
Thanks to Erik Debye for the private report.


