-
Notifications
You must be signed in to change notification settings - Fork 147
Labels
Description
I accidentally found this while testing #867 but it predates #867
I think this is a serious issue because:
west configand (build) output can depend on the current directory. I think they never should because that can lead to hours or even days of troubleshooting. For instance imagine compiler flags that "silently" come and go.- More severely, I think this is a significant attack surface very similar to what @mbolivar described in [draft] Support dropin config files (within
.ddirectories) #849 (comment)
So, I think relative paths in WEST_CONFIG_* should be rejected or anchored, see below. However, this is technically a backwards-incompatible change. I mean some users could have actually relied on that to "dynamically" change their configuration. They shouldn't have, but they might have...