• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

foodcoops / foodsoft / 28314988615
46%
master: 43%

Build:
Build:
LAST BUILD BRANCH: bugfix/1326/article-versions-migration-reinstate-global-prices
DEFAULT BRANCH: master
Ran 28 Jun 2026 07:28AM UTC
Jobs 1
Files 269
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Jun 2026 07:21AM UTC coverage: 66.25% (+23.3%) from 42.995%
28314988615

push

github

web-flow
Fix privilege escalation via mass assignment in workgroup update (#1323) (#1324)

Foodcoop::WorkgroupsController#update passed params[:workgroup] straight
to update, and the application sets permit_all_parameters = true, so any
member of the workgroup (the action only requires membership) could send
workgroup[role_admin]=true and grant their group the global admin role,
escalating from ordinary member to site administrator.

Restrict the assignment to the fields the member edit form exposes
(name, description, user_tokens) with a strong-parameters allowlist,
matching the pattern already used in home_controller#update_profile.

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>

2 of 4 new or added lines in 1 file covered. (50.0%)

4130 of 6234 relevant lines covered (66.25%)

64.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
50.0
4.55% app/controllers/foodcoop/workgroups_controller.rb
Jobs
ID Job ID Ran Files Coverage
1 28314988615.1 28 Jun 2026 07:28AM UTC 269
66.25
GitHub Action Run
Source Files on build 28314988615
  • Tree
  • List 269
  • Changed 269
  • Source Changed 80
  • Coverage Changed 269
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fb5a12ef on github
  • Prev Build on v4.x (#14467528194)
  • Next Build on v4.x (#28315036681)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc