File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
javascript/ql/test/query-tests/Security/CWE-522-DecompressionBombs Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,15 @@ app.listen(3000, () => {
99} ) ;
1010
1111app . post ( '/upload' , async ( req , res ) => {
12- fflate . unzlibSync ( new Uint8Array ( req . files . CompressedFile . data ) ) ; // $ Alert
13- fflate . unzip ( new Uint8Array ( new Uint8Array ( req . files . CompressedFile . data ) ) ) ;
14- fflate . unzlib ( new Uint8Array ( req . files . CompressedFile . data ) ) ;
15- fflate . unzlibSync ( new Uint8Array ( req . files . CompressedFile . data ) ) ;
16- fflate . gunzip ( new Uint8Array ( req . files . CompressedFile . data ) ) ;
17- fflate . gunzipSync ( new Uint8Array ( req . files . CompressedFile . data ) ) ;
18- fflate . decompress ( new Uint8Array ( req . files . CompressedFile . data ) ) ;
19- fflate . decompressSync ( new Uint8Array ( req . files . CompressedFile . data ) ) ;
12+ // Not sure if these are vulnerable, but currently not modeled
13+ fflate . unzlibSync ( new Uint8Array ( req . files . CompressedFile . data ) ) ; // $ MISSING: Alert
14+ fflate . unzip ( new Uint8Array ( new Uint8Array ( req . files . CompressedFile . data ) ) ) ; // $ MISSING: Alert
15+ fflate . unzlib ( new Uint8Array ( req . files . CompressedFile . data ) ) ; // $ MISSING: Alert
16+ fflate . unzlibSync ( new Uint8Array ( req . files . CompressedFile . data ) ) ; // $ MISSING: Alert
17+ fflate . gunzip ( new Uint8Array ( req . files . CompressedFile . data ) ) ; // $ MISSING: Alert
18+ fflate . gunzipSync ( new Uint8Array ( req . files . CompressedFile . data ) ) ; // $ MISSING: Alert
19+ fflate . decompress ( new Uint8Array ( req . files . CompressedFile . data ) ) ; // $ MISSING: Alert
20+ fflate . decompressSync ( new Uint8Array ( req . files . CompressedFile . data ) ) ; // $ MISSING: Alert
2021
2122
2223 fflate . unzlibSync ( new Uint8Array ( req . files . CompressedFile . data ) , {
You can’t perform that action at this time.
0 commit comments