Skip to content

Security: hCaptcha keys can be nil in production, silently disabling captcha #47

@philipithomas

Description

@philipithomas

Description

In config/initializers/recaptcha.rb:4-11, if HCAPTCHA_SITE_KEY and HCAPTCHA_SECRET_KEY environment variables are not set in production, the keys will be nil, potentially disabling captcha validation entirely.

Recommendation

Validate presence of these keys on boot and raise an error if missing in production.

Severity

Medium

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions