{"id":17686023,"url":"https://github.com/geekmasher/ssrf-java","last_synced_at":"2025-03-30T20:26:20.485Z","repository":{"id":84948093,"uuid":"298594924","full_name":"GeekMasher/ssrf-java","owner":"GeekMasher","description":"Java Spring based Server Side Request Forgery (SSRF) examples","archived":false,"fork":false,"pushed_at":"2020-10-01T12:07:33.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T22:39:20.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GeekMasher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-25T14:23:49.000Z","updated_at":"2020-10-01T12:07:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"b60f491e-8b82-4d0a-b159-775f3cd62d25","html_url":"https://github.com/GeekMasher/ssrf-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekMasher%2Fssrf-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekMasher%2Fssrf-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekMasher%2Fssrf-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekMasher%2Fssrf-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeekMasher","download_url":"https://codeload.github.com/GeekMasher/ssrf-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246375963,"owners_count":20767201,"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","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":"2024-10-24T10:29:43.940Z","updated_at":"2025-03-30T20:26:20.462Z","avatar_url":"https://github.com/GeekMasher.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Spring based Server Side Request Forgery (SSRF) examples\n\nThis project is a collection of libraries in Java that perform requests on behalf of users to external API's (typically REST).\n\n## Running the Project\n\n```bash\n./mvnw spring-boot:run\n```\n\n## Libraries\n\n### `java.net.URL`\n\n**Library Paths:**\n\n- `java.net.URL`\n\n**Example Sink:**\n\n```java\nimport java.net.URL;\nimport java.net.URLConnection;\n// ...\nURL url = new URL(INPUT);\nURLConnection connection = url.openConnection();\n```\n\n### `java.net.http`\n\n**Library Paths:**\n\n- `java.net.http.HttpClient`\n\n**Example Sink:**\n\n- [SsrfHttpRequest1.java](src/main/java/com/geekmasher/ssrf/SsrfHttpRequest1.java)\n\n```java\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\n// ...\nHttpClient client = HttpClient.newHttpClient();\nHttpRequest request = HttpRequest.newBuilder()\n    .uri(URI.create(INPUT))\n    .GET()\n    .build();\n```\n\n### Restlet\n\n**Library Paths:**\n\n- `org.restlet.resource.ClientResource`\n\n**Example Sink:**\n\n- [SsrfClientResource1.java](src/main/java/com/geekmasher/ssrf/SsrfClientResource1.java)\n\n```java\nimport org.restlet.resource.ClientResource;\nimport org.restlet.representation.Representation;\n// ...\nClientResource resource = new ClientResource(INPUT);\nRepresentation repr = resource.get();\n```\n\n### Jsoup\n\n**Library Paths:**\n\n- `org.jsoup.Jsoup`\n\n**Example Sink:**\n\n- [SsrfJSoup1.java](src/main/java/com/geekmasher/ssrf/SsrfJSoup1.java)\n\n```java\nimport org.jsoup.Jsoup;\n// ...\nClientResource resource = new ClientResource(INPUT);\nRepresentation repr = resource.get();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekmasher%2Fssrf-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeekmasher%2Fssrf-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekmasher%2Fssrf-java/lists"}