-
-
Notifications
You must be signed in to change notification settings - Fork 162
Closed
Labels
Description
I notice you reassign and unset the sensitive values. From what I can tell from memory dumps:
- Reassigning values does not overwrite the memory location the previous value was stored at but creates an entry at a new memory address.
- Also unset doesn't clear the memory so you can still see the previous content.
Also depending on implementation and environment reassigning before performing unset might do more harm than good.
Is there a better way to clear these values from memory? I'm more of a C guy so it took me a while to even view the memory address and contents of shell script. Let alone come up with a solution.
Reactions are currently unavailable