File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,9 @@ export async function runSshKeyscan(url: string) {
8888 }
8989 }
9090
91+ // NOTE: While this is technically vulnerable due to a ReDoS vulnerability in cross-spawn
92+ // (dependency of child-process-promise), this code will only be executed by admins, so it should
93+ // be ok.
9194 const process = await spawn ( 'ssh-keyscan' , [ host ] , { capture : [ 'stdout' ] } ) ;
9295
9396 // console.log(process.stdout);
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ export async function generateKey(): Promise<string> {
7272 await setLocalConfig ( cfg ) ;
7373
7474 // ssh-keygen -t $DEFAULT_KEY_TYPE -f ${defaultPrivateKeyPath()} -N '' -c "Minifolio SSH key"
75+ // NOTE: While cross-spawn (dependency of child-process-promise) is technically vulnerable to a
76+ // ReDoS attack, this is fine here, since the arguments are controlled by us
7577 await spawn (
7678 'ssh-keygen' ,
7779 [
You can’t perform that action at this time.
0 commit comments