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

foodcoops / foodsoft / 28314350475
43%

Build:
DEFAULT BRANCH: master
Ran 28 Jun 2026 06:57AM UTC
Jobs 1
Files 304
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 06:53AM UTC coverage: 66.916%. Remained the same
28314350475

push

github

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

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.

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

5105 of 7629 relevant lines covered (66.92%)

368.24 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 28314350475.1 28 Jun 2026 06:57AM UTC 304
66.92
GitHub Action Run
Source Files on build 28314350475
  • Tree
  • List 304
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 73346956 on github
  • Prev Build on master (#28231008770)
  • Next Build on master (#28597432082)
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