forgejo/routers/web/shared
Gusted 5b30b7dc6f
fix(sec): web route delete runner
The web route to delete action runners did not check if the ID that was
given belonged to the context it was requested in, this made it possible
to delete every existing runner of a instance by a authenticated user.

The code was reworked to ensure that the caller of the delete
runner function retrieved the runner by ID and then checks if it belongs
to the context it was requested in, although this is not an optimal
solution it is consistent with the context checking of other code for
runners.

(cherry picked from commit 567765be03d56d6c8c36bb783c330c8ca70b1aca)

Conflicts:
	models/actions/runner.go
	models/actions/runner_test.go
  conflicting UUID bug fix and associated tests do not exist
2025-02-08 07:50:19 +00:00
..
actions fix(sec): web route delete runner 2025-02-08 07:50:19 +00:00
packages [BUG] Reflect Cargo index state in settings 2024-03-20 09:17:49 +01:00
project Fix various problems around projects board view (#30696) 2024-05-14 15:51:15 +02:00
secrets Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
user Fix missing code in the user profile (#29865) 2024-03-26 19:04:25 +01:00