mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 16:21:06 +00:00
PVF worker: Prevent access to env vars (#7330)
This commit is contained in:
@@ -125,3 +125,10 @@ A basic security mechanism is to make sure that any thread directly interfacing
|
||||
with untrusted code does not have access to the file-system. This provides some
|
||||
protection against attackers accessing sensitive data or modifying data on the
|
||||
host machine.
|
||||
|
||||
### Clearing env vars
|
||||
|
||||
We clear environment variables before handling untrusted code, because why give
|
||||
attackers potentially sensitive data unnecessarily? And even if everything else
|
||||
is locked down, env vars can potentially provide a source of randomness (see
|
||||
point 1, "Consensus faults" above).
|
||||
|
||||
Reference in New Issue
Block a user