{"id":33022260,"url":"https://github.com/ContainerSolutions/node-hack","last_synced_at":"2025-11-14T08:01:05.981Z","repository":{"id":87118048,"uuid":"50184392","full_name":"ContainerSolutions/node-hack","owner":"ContainerSolutions","description":"A vulnerable nodejs application for hollywood-style hacking demos","archived":false,"fork":false,"pushed_at":"2017-03-21T15:35:14.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-27T06:02:03.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ContainerSolutions.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":"2016-01-22T13:56:34.000Z","updated_at":"2022-10-13T10:56:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"893ef498-284d-4669-977e-1af5c566f758","html_url":"https://github.com/ContainerSolutions/node-hack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ContainerSolutions/node-hack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContainerSolutions%2Fnode-hack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContainerSolutions%2Fnode-hack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContainerSolutions%2Fnode-hack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContainerSolutions%2Fnode-hack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ContainerSolutions","download_url":"https://codeload.github.com/ContainerSolutions/node-hack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ContainerSolutions%2Fnode-hack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284360420,"owners_count":26991377,"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-11-14T02:00:06.101Z","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-11-13T19:00:34.412Z","updated_at":"2025-11-14T08:01:05.973Z","avatar_url":"https://github.com/ContainerSolutions.png","language":"JavaScript","funding_links":[],"categories":["Node.js"],"sub_categories":[],"readme":"## Vulnerable nodejs app for demos\n\n**WARNING**: *This app deliberately exposes a RCE vulnerability (CVE-2013-4660). It is meant to demonstrate the use of Docker to clean up after a breach and prevent them from happening again in the future.*\n\n#### Build \u0026 run:\n\n    $ docker build -t node-hack .\n    $ docker run -it --rm -p 1337:1337 --name node-hack node-hack\n\n#### Browse to and demo app:\nWith docker-machine on OS X\n\n    $ open http://$(docker-machine ip default):1337\n\n- Upload `yaml/nice.yml`, `yaml/broken.yml` and `yaml/evil.yml` for demonstration.\n- Browse to start page to see defaced website.\n- `Ctrl+c` \u0026 re-run container to show the breach casued by `evil.yml` is gone again.\n\n#### Run in read only mode:\nTo prevent more breaches...\n\n    $ docker run --read-only -it --rm -p 1337:1337 --name node-hack node-hack\n\nTry to upload `evil.yml` again =\u003e no breach.\n\n#### Poor mans kill \u0026 supervisor scripts:\nUse this if you want to demo cases where you can't use `--read-only` (the \"supervisor\" loop is needed as `--restart=always` does not work with `--rm`)\n\n    $ while :; do test $(docker diff node-hack | wc -l) -gt 0 \u0026\u0026 docker kill node-hack; sleep 3; done\n    # in a different terminal:\n    $ while :; do docker run -it --rm -p 1337:1337 --name node-hack node-hack; sleep 2; done\n\nUpload `evil.yml` again =\u003e breach is undone after a few seconds.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FContainerSolutions%2Fnode-hack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FContainerSolutions%2Fnode-hack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FContainerSolutions%2Fnode-hack/lists"}