mirror of
https://github.com/curl/curl.git
synced 2026-05-30 12:47:29 +03:00
firefox-db2pem: avoid use of eval in script
This could potentially be exploited by manipulating nicknames in the cert DB. Reported-by: behindtheblackwall on hackerone Closes #17766
This commit is contained in:
parent
d2a408587a
commit
0b98f596c8
1 changed files with 1 additions and 1 deletions
|
|
@ -57,5 +57,5 @@ sed -e 's/ *[CcGTPpu]*,[CcGTPpu]*,[CcGTPpu]* *$//' -e 's/\(.*\)/"\1"/' | \
|
|||
sort | \
|
||||
while read -r nickname; \
|
||||
do echo "$nickname" | sed -e "s/Builtin Object Token://g"; \
|
||||
eval certutil -d "$db" -L -n "$nickname" -a ; \
|
||||
echo "$nickname" | xargs -I{} certutil -d "$db" -L -a -n {} ; \
|
||||
done >> "$out"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue