Skip to content

New. Security. Lost-password interface is under rate limit. - #755

Merged
Glomberg merged 13 commits into
devfrom
New-Security-Lost-password-interfase-is-under-rate-limit-VI
Oct 9, 2026
Merged

Glomberg merged 13 commits into
devfrom
New-Security-Lost-password-interfase-is-under-rate-limit-VI

Conversation

@Glomberg

Copy link
Copy Markdown
Member

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Rate-limit enforcement and handling of protection settings contain unresolved correctness issues.

4 open findings
What changed in this PR

Extends password-recovery protection using the plugin’s shared rate limiter.

Changes:

  • Adds lost-password rate limiting and a settings notice.
  • Identifies clients by IP and request type rather than user agent.
  • Adds persisted lock timestamps and atomic database updates.
File Description
lib/​CleantalkSP/​SpbctWP/​SpbcRateLimit/​SpbcRateLimiter.php Updates counters, locks, state refresh, and cleanup.
lib/​CleantalkSP/​SpbctWP/​DB/​SQLSchema.php Adds the locked_at column.
lib/​CleantalkSP/​Common/​RateLimit/​RateLimiter.php Changes client identification and lock checks.
lib/​CleantalkSP/​Common/​RateLimit/​RateLimitDTO.php Adds lock timestamp data.
js/​src/​react/​components/​TabContent/​TabSettingsGeneral/​Settings/​BfpEnabled.js Adds the password-recovery protection notice.
inc/​spbc-auth.php Hooks password-recovery requests into rate limiting.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread inc/spbc-auth.php
Comment thread inc/spbc-auth.php
Comment thread lib/CleantalkSP/SpbctWP/SpbcRateLimit/SpbcRateLimiter.php
Comment thread lib/CleantalkSP/SpbctWP/SpbcRateLimit/SpbcRateLimiter.php
@Glomberg
Glomberg requested a review from AntonV1211 October 8, 2026 11:13
…word-interfase-is-under-rate-limit-VI

# Conflicts:
#	js/public/spbct-react-bundle.js
@Glomberg
Glomberg merged commit e13c274 into dev Oct 9, 2026
5 checks passed
@Glomberg
Glomberg deleted the New-Security-Lost-password-interfase-is-under-rate-limit-VI branch October 9, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants