Skip to content

Fix improper mass assignment in account registration#5689

Merged
yau-wd merged 11 commits intomainfrom
feature/improper-mass-assignment-fix
Feb 12, 2026
Merged

Fix improper mass assignment in account registration#5689
yau-wd merged 11 commits intomainfrom
feature/improper-mass-assignment-fix

Conversation

@christopherholland-workday
Copy link
Contributor

Fix improper mass assignment in account registration by creating an allow-list of fields that can be copied over, while leaving the server-side generated fields to be generated server-side.

@FlowiseAI FlowiseAI deleted a comment from gemini-code-assist bot Jan 29, 2026
gemini-code-assist[bot]

This comment was marked as outdated.

Copy link
Contributor

@yau-wd yau-wd left a comment

Choose a reason for hiding this comment

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

comment

@yau-wd
Copy link
Contributor

yau-wd commented Feb 12, 2026

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively addresses a mass assignment vulnerability in the account registration process by implementing an allow-list for user-provided fields. The approach is sound and correctly mitigates the security risk. I've included a couple of suggestions to improve the consistency and readability of the new sanitization logic.

yau-wd and others added 4 commits February 12, 2026 20:42
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@yau-wd yau-wd merged commit 1e4b0d8 into main Feb 12, 2026
7 checks passed
@yau-wd yau-wd deleted the feature/improper-mass-assignment-fix branch February 12, 2026 15:29
vellanki-santhosh pushed a commit to vellanki-santhosh/Flowise that referenced this pull request Feb 17, 2026
* Sanitize account information during registration

* Fix Improper Mass Assignment in Account Registration

* Update account.service.ts

* Fix improper mass assignment in account registration

* Fix improper mass assignment in account registration

* Update packages/server/src/enterprise/controllers/account.controller.ts

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Update packages/server/src/enterprise/controllers/account.controller.ts

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* fix(account.controller.ts): remove additional }

* chore(organization/index.jsx): remove hardcoded user type pro from organization setup

---------

Co-authored-by: yau-wd <yau.ong@workday.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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