mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 04:02:30 +08:00
The `upload_csv` endpoint accepted user-controlled CSV headers without validation, allowing arbitrary keys into the invite hashes passed to the BulkInvite job. Restrict accepted columns to the ones already handled in BulkInvite ( basically, `email`, `groups`, `topic_id`, `locale`) plus valid UserField names.
51 B
Vendored
51 B
Vendored
| 1 | location | moderator | |
|---|---|---|---|
| 2 | test@example.com | usa | true |