{"id":42648886,"url":"https://github.com/mureinik/loop-li-loop","last_synced_at":"2026-01-29T07:17:51.423Z","repository":{"id":69328801,"uuid":"327433773","full_name":"mureinik/loop-li-loop","owner":"mureinik","description":"A repo with the demos and benchmarks from my talk This DoS Goes Loop-di-Loop.","archived":false,"fork":false,"pushed_at":"2025-12-28T20:49:39.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T13:01:56.116Z","etag":null,"topics":["appsec","dos-attack","node-js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mureinik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-01-06T21:31:43.000Z","updated_at":"2025-12-28T20:49:42.000Z","dependencies_parsed_at":"2023-05-25T20:00:27.861Z","dependency_job_id":null,"html_url":"https://github.com/mureinik/loop-li-loop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mureinik/loop-li-loop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mureinik%2Floop-li-loop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mureinik%2Floop-li-loop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mureinik%2Floop-li-loop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mureinik%2Floop-li-loop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mureinik","download_url":"https://codeload.github.com/mureinik/loop-li-loop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mureinik%2Floop-li-loop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28869017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T06:56:44.678Z","status":"ssl_error","status_checked_at":"2026-01-29T06:56:35.794Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["appsec","dos-attack","node-js"],"created_at":"2026-01-29T07:17:50.418Z","updated_at":"2026-01-29T07:17:51.416Z","avatar_url":"https://github.com/mureinik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This DoS Goes Loop-di-Loop\n\nA repo with the demos and benchmarks from my talk This Loop Goes Loop-di-Loop that was featured in [several conferences](./CONFERENCES.md).\n\n\n## Warning\n\nThese demos contain **intentionally vulnerable code**.\n\nDo not run any of them on a machine which can be accessed by external  users.\n\n\n## Installation\n\nClone the repository:\n```\ngit clone https://github.com/mureinik/loop-di-loop.git\n```\n\nInstall the dependencies:\n```\nnpm install\n```\n\n\n## Usage\n- `lib`: Contains the demos. Each of these files is a standalone mini-application that can be run independently:\n\n  - JSON example:\n    ```\n    node demo-json.js\n    ```\n\n    Then hit the endpoint with a POST request:\n    ```\n    curl -X POST -H \"Content-Type: application/json\" -d '{\"key1\": \"value1\", \"key2\": \"value2\"}' http://localhost:3000/json\n    ```\n\n  - XML example:\n    ```\n    node demo-json.js\n    ```\n\n    Then hit the endpoint with a POST request:\n    ```\n    curl -X POST -H \"Content-Type: application/xml\" -d '\u003cxml\u003e\u003cchild/\u003e\u003c/xml\u003e' http://localhost:3000/xml\n    ```\n\n  - YAML example (mentioned but not discussed deeply in the talk):\n    ```\n    node demo-yaml.js\n    ```\n\n    Then hit the endpoint with a POST request:\n    ```\n    curl -X POST -d $'line0: \u0026line0 [\\\"line0\\\"]\\nline1: \u0026line1 [\\\"line1\\\"]' http://localhost:3000/yaml\n    ```\n\n  - ReDoS example:\n    ```\n    node demo-redos.js\n    ```\n\n    Then hit the endpoint with a GET request:\n    ```\n    curl http://localhost:3000/regexp?regexp=a%2B\u0026text=aaaa\n    ```\n\n  - Storage example:\n    ```\n    node demo-storage.js\n    ```\n\n    Then hit the endpoint with a GET request:\n    ```\n    curl http://localhost:3000/lorem\n    ```\n\n- `benchmark`: Contains scripts to benchmark the issues demonstrated in the talk. Each of these scripts can be run \n  independently and will dump a tab-separated result to the standard output. It's recommended to redirect the output to a file:\n  ```\n  node \u003cfilename\u003e \u003e /tmp/benchmark.tsv\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmureinik%2Floop-li-loop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmureinik%2Floop-li-loop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmureinik%2Floop-li-loop/lists"}