/

CVE-2026-127079

Severity:

HIGH RISK

(7.4)

OTP Brute-Force (CWE-307) in BuildPiper Password Reset

CVE-2026-127079

Deferred

Vulnerability type

Category:

Brute-Force Attack

CWE:

CWE-307

Impact:

Account Takeover

Severity:

HIGH RISK

(7.4)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

OpsTree BuildPiper's password-reset flow allows repeated OTP verification attempts without effective rate limiting. An unauthenticated attacker who can initiate a reset may guess a six-digit OTP and, if successful, reset the target account's password.

Affected context

The issue affects BuildPiper versions before 2.7.0 in the password-reset OTP verification flow. The check_otp endpoint reportedly accepts repeated guesses without rate limiting, making the short OTP more susceptible to brute-force attempts.

Exploit preconditions

  • Attack surface: Password-reset OTP verification endpoint
  • Required access: No authenticated access is required; the attacker must be able to initiate a password reset for a target account
  • Trigger point: Submission of OTP guesses to check_otp
  • Why exploitation is possible: Verification attempts are not sufficiently rate-limited, allowing repeated guesses against a six-digit OTP

Why this happens

The underlying issue is inadequate restriction of repeated authentication-related attempts, which maps to CWE-307: Improper Restriction of Excessive Authentication Attempts. When an OTP verification endpoint does not limit or otherwise control repeated guesses, an attacker may try many possible values before the reset flow expires or blocks further attempts.

Potential impact

  • An attacker may successfully verify a target's reset OTP
  • A target account's password could be reset without authorization
  • The attacker may take over the account and access its associated data or functions

General mitigation guidance

Defensive approaches generally focus on limiting verification attempts and reducing the usefulness of repeated guesses. Patterns include:

  • Applying per-account, per-reset, and broader abuse controls to OTP verification attempts
  • Expiring OTPs promptly and invalidating them after successful use or excessive failures
  • Using sufficiently unpredictable, short-lived verification codes
  • Adding monitoring and proportionate delays or temporary challenges for suspicious activity
  • Limiting the privileges and sensitive actions available through password-reset flows
  • Avoiding account enumeration in reset responses and applying controls consistently across accounts

How teams detect issues like this

Detection can combine application and operational controls:

  • Review code for OTP verification paths that lack attempt counters, throttling, or reset-flow expiry
  • Use static analysis or code review checks to flag authentication endpoints without abuse controls
  • Monitor for repeated failed OTP submissions by account, source, reset token, and time window
  • Apply policies requiring rate limits and alerts for sensitive verification endpoints
  • Test reset flows for consistent behavior under repeated invalid attempts

Sources

SourceLink
gist.github.comgist.github.com/neelkotnis/c3c9d02c324a73937ca4db81f223435e
buildpiper.iobuildpiper.io/
vulncheck.comvulncheck.com/advisories/opstree-buildpiper-before-2.7.0-otp-brute-force-via-password-reset-check-otp

Frequently asked

questions

The description indicates that an attacker does not need to be authenticated, but must be able to initiate a reset for the target account.

Access to the password-reset flow and its OTP verification endpoint is the key prerequisite; authenticated access is not required.

Restrict repeated OTP verification attempts, expire and invalidate codes appropriately, and monitor suspicious activity across relevant request scopes.

Treat verification endpoints as abuse-sensitive surfaces, enforce consistent attempt limits, and include repeated-failure scenarios in security reviews and testing.

Find out what's already
exploitable in your codebase.