Server: Budibase: Email Change IDOR via POST /api/v2/email allows full Account Takeover (accountId not validated against session)
Budibase server has an IDOR vulnerability in the POST /api/v2/email endpoint that allows an authenticated attacker to change the email address of another user's account by supplying the victim's accountId without validation against the session. This enables the attacker to receive the email verification code, change the victim's email to an attacker-controlled address, and then reset the victim's password to take full control of the account. The victim is locked out, and the attacker gains access to all tenant resources. The accountId is not exposed via normal API endpoints, so the attacker must obtain it through other means. This vulnerability affects Budibase server versions up to and including 3.38.1.
AI Analysis
Technical Summary
The Budibase server's email change workflow at POST /api/v2/email trusts a client-supplied accountId without verifying it matches the authenticated session's accountId. An attacker logged into their own account can supply a victim's accountId and an attacker-controlled email address to initiate an email change for the victim's account. The verification code is sent to the attacker-controlled email, allowing the attacker to complete the workflow and change the victim's email. Subsequently, the attacker uses the password reset endpoint to set a new password via the attacker-controlled email, achieving full account takeover. The vulnerability arises because the server only checks that the currentEmail matches the session but does not validate the accountId parameter against the session. The victim's accountId is not exposed in any public or authenticated API endpoints, requiring the attacker to obtain it out-of-band. This flaw is classified as CWE-639 (Authorization Bypass Through User-Controlled Key).
Potential Impact
An authenticated attacker who obtains a victim's accountId can fully take over the victim's Budibase account by changing the victim's login email to an attacker-controlled address and resetting the password. The attacker gains access to all tenant data, applications, and stored credentials associated with the victim's account. The victim is locked out of their account. The attack requires no victim interaction beyond the attacker having the victim's accountId, which is not exposed via normal API calls and must be obtained through other means.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to accountId values and monitor for suspicious email change requests. Avoid sharing accountId values externally and consider additional verification steps for email change workflows. Do not rely solely on client-supplied accountId values for authorization checks.
Server: Budibase: Email Change IDOR via POST /api/v2/email allows full Account Takeover (accountId not validated against session)
Description
Budibase server has an IDOR vulnerability in the POST /api/v2/email endpoint that allows an authenticated attacker to change the email address of another user's account by supplying the victim's accountId without validation against the session. This enables the attacker to receive the email verification code, change the victim's email to an attacker-controlled address, and then reset the victim's password to take full control of the account. The victim is locked out, and the attacker gains access to all tenant resources. The accountId is not exposed via normal API endpoints, so the attacker must obtain it through other means. This vulnerability affects Budibase server versions up to and including 3.38.1.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Budibase server's email change workflow at POST /api/v2/email trusts a client-supplied accountId without verifying it matches the authenticated session's accountId. An attacker logged into their own account can supply a victim's accountId and an attacker-controlled email address to initiate an email change for the victim's account. The verification code is sent to the attacker-controlled email, allowing the attacker to complete the workflow and change the victim's email. Subsequently, the attacker uses the password reset endpoint to set a new password via the attacker-controlled email, achieving full account takeover. The vulnerability arises because the server only checks that the currentEmail matches the session but does not validate the accountId parameter against the session. The victim's accountId is not exposed in any public or authenticated API endpoints, requiring the attacker to obtain it out-of-band. This flaw is classified as CWE-639 (Authorization Bypass Through User-Controlled Key).
Potential Impact
An authenticated attacker who obtains a victim's accountId can fully take over the victim's Budibase account by changing the victim's login email to an attacker-controlled address and resetting the password. The attacker gains access to all tenant data, applications, and stored credentials associated with the victim's account. The victim is locked out of their account. The attack requires no victim interaction beyond the attacker having the victim's accountId, which is not exposed via normal API calls and must be obtained through other means.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to accountId values and monitor for suspicious email change requests. Avoid sharing accountId values externally and consider additional verification steps for email change workflows. Do not rely solely on client-supplied accountId values for authorization checks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-c8vc-7pv3-g98p
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- null
Threat ID: 6a6542309c2644c7f808a757
Added to database: 07/25/2026, 23:09:36 UTC
Last enriched: 07/25/2026, 23:57:41 UTC
Last updated: 07/25/2026, 23:57:41 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.