The vulnerability allows a user with permissions to create or update Fission Environment custom resources to gain read access to all secrets and configmaps within the Fission builder namespace. This is because the builder pods, which can run user-defined images, were created with the fission-builder ServiceAccount token automatically mounted.
The provided patch commit 8fa799417c77ce8a0189d9858bfe11ece29b84a6 clearly shows that the function createBuilderDeployment in pkg/buildermgr/envwatcher.go is responsible for creating these builder pods. The core of the vulnerability is that the PodSpec created by this function did not set AutomountServiceAccountToken to false. The fix involves explicitly setting this field to false at the pod level and ensuring that any user-provided pod specifications cannot override this setting. The function createBuilderDeployment is the central point where the vulnerable configuration was generated. Therefore, its execution is a primary indicator of the vulnerability being triggered when an Environment is created or updated.