Re:Hacking with environment variables
by pentestercrab on Monday July 13, 2020 @11:46PM
(#23828320)
It does not require opening a browser, it can cause a browser to open.
[ Parent
| on HN ]
Which is not on its own a "vulnerability", you'd need to chain it to something usable in the browser / as a consequence of the browser being opened.
It increases your options, certainly, but it can't do anything dangerous as-is.
You can define any executable in the $BROWSER environment variable which will be executed whenever antigravity is imported.
You could execute a 'curl` which directly pipes into 'bash -c'.
"Any executable" does not mean adding pipes and arguments. This is one important benefit of not using shell.
See https://github.com/python/cpython/blob/master/Lib/webbrowser...
Re:Hacking with environment variables
by thefreeman on Tuesday July 14, 2020 @10:15AM
(#23832203)
This is flat wrong. You can cause it to run an arbitrary binary by setting the BROWSER environment variable, as they demonstrate in the article. They chained it with perl environment variable vulnerability listed earlier to achieve execution.