Incorrect path handling - Image Captcha Submodule

Created on 2 April 2025, 14 days ago

Problem/Motivation

We got dinged in a recent security scan for the image-captcha-refresh URL. The refresh controller for the image captcha submodule responds with HTTP 200 to any request to the base captcha refresh path, even when the path includes invalid extensions or additional text.

Example

https://example.com/image-captcha-refresh/webform_submission_contact_add_form.exe
https://example.com/image-captcha-refresh/webform_submission_contact_add_form.asdfadf 

These invalid paths should return 404 errors instead of 200 responses.

๐Ÿ› Bug report
Status

Active

Version

2.0

Component

Image Captcha (image_captcha)

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States phernand42

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024