File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
ruby/ql/src/experimental/CWE-522-DecompressionBombs Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -81,16 +81,18 @@ module ZipInputStream {
81
81
/**
82
82
* Gets a node of `Zip::InputStream` member
83
83
*
84
- * Note that if you use the lower level Zip::InputStream interface, rubyzip does not check the entry sizes.
84
+ * Note that if you use the lower level Zip::InputStream interface, rubyZip does not check the entry sizes.
85
85
*/
86
86
private API:: Node zipInputStream ( ) {
87
87
result = API:: getTopLevelMember ( "Zip" ) .getMember ( "InputStream" )
88
88
}
89
89
90
90
/**
91
- * The return values of following methods
92
- * `ZipIO.read`
93
- * `ZipEntry.extract`
91
+ * The methods
92
+ * `Zip::InputStream.read`
93
+ * `Zip::InputStream.extract`
94
+ *
95
+ * as source of decompression bombs, they need an additional taint step for a dataflow or taint tracking query
94
96
*/
95
97
class DecompressionBombSink extends DecompressionBomb:: Range {
96
98
DecompressionBombSink ( ) { this = zipInputStream ( ) .getMethod ( [ "open" , "new" ] ) }
You can’t perform that action at this time.
0 commit comments