{"id":24678690,"url":"https://github.com/contrast-security-oss/jinfinity","last_synced_at":"2025-10-08T11:31:18.038Z","repository":{"id":72669968,"uuid":"46820613","full_name":"Contrast-Security-OSS/jinfinity","owner":"Contrast-Security-OSS","description":"An API for consuming all the memory of Java apps using deserialization","archived":true,"fork":false,"pushed_at":"2016-01-10T01:01:38.000Z","size":8,"stargazers_count":28,"open_issues_count":1,"forks_count":12,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-09-30T19:00:00.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Contrast-Security-OSS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-24T21:45:47.000Z","updated_at":"2025-07-23T01:28:20.000Z","dependencies_parsed_at":"2023-03-30T13:34:04.926Z","dependency_job_id":null,"html_url":"https://github.com/Contrast-Security-OSS/jinfinity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Contrast-Security-OSS/jinfinity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Contrast-Security-OSS%2Fjinfinity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Contrast-Security-OSS%2Fjinfinity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Contrast-Security-OSS%2Fjinfinity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Contrast-Security-OSS%2Fjinfinity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Contrast-Security-OSS","download_url":"https://codeload.github.com/Contrast-Security-OSS/jinfinity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Contrast-Security-OSS%2Fjinfinity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278934167,"owners_count":26071364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-26T13:17:58.122Z","updated_at":"2025-10-08T11:31:17.728Z","avatar_url":"https://github.com/Contrast-Security-OSS.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"jinfinity\n========\n\nAn API and demonstration program for consuming all the memory of applications that deserialize data from untrusted sources (like HTTP requests) using the Java serialization specification.\n\n## How do I use this?\n\nUse the com.contrastsecurity.jinfinity.JInfinity.java#sendAttack() API to push an unreasonably large serialized String to a target OutputStream. You'll need to figure out how to get the OutputStream of your target set up correctly.\n\n## How can I run the demo program?\n\nFirst, build the app:\n\n```\ngit clone https://github.com/Contrast-Security-OSS/jinfinity.git\ncd jinfinity\nmvn clean package\n```\n\nTo run the demo Jetty server, run this:\n```\njava -jar target/jinfinity-jar-with-dependencies.jar server\n```\n\nIn another console, run the attacking client:\n```\njava -jar target/jinfinity-jar-with-dependencies.jar client\n```\n\nWithin 30 seconds, the server will produce an OutOfMemoryError that looks something like this:\n\n```\njava.lang.OutOfMemoryError: Java heap space\n\tat java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)\n\tat java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:518)\n\tat java.lang.StringBuffer.append(StringBuffer.java:307)\n\tat java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(ObjectInputStream.java:3044)\n\tat java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java:2952)\n\tat java.io.ObjectInputStream$BlockDataInputStream.readLongUTF(ObjectInputStream.java:2935)\n\tat java.io.ObjectInputStream.readString(ObjectInputStream.java:1570)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontrast-security-oss%2Fjinfinity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontrast-security-oss%2Fjinfinity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontrast-security-oss%2Fjinfinity/lists"}