{"id":21469923,"url":"https://github.com/dobin/waasa-reflector","last_synced_at":"2026-01-31T08:31:19.548Z","repository":{"id":197828947,"uuid":"699384394","full_name":"dobin/waasa-reflector","owner":"dobin","description":"return a file via HTTP with certain file extension and magic type","archived":false,"fork":false,"pushed_at":"2023-11-03T09:57:42.000Z","size":5228,"stargazers_count":0,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-25T01:50:40.394Z","etag":null,"topics":["content-filter","content-filter-check"],"latest_commit_sha":null,"homepage":"https://files.r00ted.ch","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dobin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-02T14:26:08.000Z","updated_at":"2023-10-29T14:20:53.000Z","dependencies_parsed_at":"2023-11-03T10:32:13.689Z","dependency_job_id":null,"html_url":"https://github.com/dobin/waasa-reflector","commit_stats":null,"previous_names":["dobin/waasa-reflector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dobin/waasa-reflector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobin%2Fwaasa-reflector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobin%2Fwaasa-reflector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobin%2Fwaasa-reflector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobin%2Fwaasa-reflector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dobin","download_url":"https://codeload.github.com/dobin/waasa-reflector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobin%2Fwaasa-reflector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28935398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T07:49:44.436Z","status":"ssl_error","status_checked_at":"2026-01-31T07:49:34.274Z","response_time":128,"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":["content-filter","content-filter-check"],"created_at":"2024-11-23T09:19:30.017Z","updated_at":"2026-01-31T08:31:19.533Z","avatar_url":"https://github.com/dobin.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# waasa-reflector\n\nWill send you a file in a HTTP response, with a file extension of your choosing.\nUsed to test and bypass corporate content filter proxies, typically with the [https://github.com/dobin/waasa](https://github.com/dobin/waasa) project.\n\n* `/standard/`: Filename in URL, in Content-Disposition, and correct Content Type\n* `/nomime/`: Filename in URL, in Content-Disposition, and octet/stream Content Type\n* `/nomimenofilename/`: Filename only in Content-Disposition, octet/stream content type\n\nTest it at [https://files.r00ted.ch](https://files.r00ted.ch): \n* [https://files.r00ted.ch/standard/test.txt](https://files.r00ted.ch/standard/test.txt)\n* [https://files.r00ted.ch/nomime/test.txt](https://files.r00ted.ch/nomime/test.txt)\n* [https://files.r00ted.ch/nomimenofilename/dGVzdC50eHQ=](https://files.r00ted.ch/nomimenofilename/dGVzdC50eHQ=)\n\n\n## But Why?\n\nContent Filter are able to filter files based on two properties: \n* The MIME Type in `Content-Type`\n* The filename in either the URL, or `Content-Disposition` header\n* Potentially the MIME Type from the filecontent magic bytes\n\nA lot of Content Filters are filtering mostly based on the MIME Type, which can be easily bypassed\nby sending the file with `Content-Type: octet/stream` (`/nomime/`). \n\nWe also try to hide the filename from the URL (`/nomimenofilename/`), so the last place is in the `Content-Disposition` header. \n\n\n## Examples\n\n### Standard\n\nThis has the correct `Content-Type` and a filename in the URL and in the `Content-Disposition` header. \n\n```sh\n$ curl -v localhost:5002/standard/test.docx\n\u003e GET /standard/test.docx HTTP/1.1\n\u003e Host: localhost:5002\n\u003e User-Agent: curl/7.81.0\n\u003e Accept: */* \n\n\u003c HTTP/1.1 200 OK\n\u003c Server: Werkzeug/2.3.7 Python/3.10.12\n\u003c Date: Fri, 03 Nov 2023 09:15:31 GMT\n\u003c Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document\n\u003c Content-Length: 11612\n\u003c X-Hash: 8be96661599854730ad2690a4ae5991f50d684bea99dcc7ee4f5d8b6204640a2\n\u003c Content-Disposition: attachment; filename=test.docx\n```\n\n\n### No Mime\n\nNote: `Content-Type: octet/stream` here\n\n```sh\n$ curl -v localhost:5002/nomime/test.docx\n\u003e GET /nomime/test.docx HTTP/1.1\n\u003e Host: localhost:5002\n\u003e User-Agent: curl/7.81.0\n\u003e Accept: */*\n\n\u003c HTTP/1.1 200 OK\n\u003c Server: Werkzeug/2.3.7 Python/3.10.12\n\u003c Date: Fri, 03 Nov 2023 09:16:08 GMT\n\u003c Content-Type: octet/stream\n\u003c Content-Length: 11612\n\u003c X-Hash: 8be96661599854730ad2690a4ae5991f50d684bea99dcc7ee4f5d8b6204640a2\n\u003c Content-Disposition: attachment; filename=test.docx\n```\n\n### No Mime and No Filename\n\nNote: `Content-Type: octet/stream` here, and no filename in the URL (its base64 encoded).\n\n```sh\n curl -v localhost:5002/nomimenofilename/dGVzdC5kb2N4\n\u003e GET /nomimenofilename/dGVzdC5kb2N4 HTTP/1.1\n\u003e Host: localhost:5002\n\u003e User-Agent: curl/7.81.0\n\u003e Accept: */*\n\n\u003c HTTP/1.1 200 OK\n\u003c Server: Werkzeug/2.3.7 Python/3.10.12\n\u003c Date: Fri, 03 Nov 2023 09:17:12 GMT\n\u003c Content-Type: octet/stream\n\u003c Content-Length: 11612\n\u003c X-Hash: 8be96661599854730ad2690a4ae5991f50d684bea99dcc7ee4f5d8b6204640a2\n\u003c Content-Disposition: attachment; filename=test.docx\n```\n\n\n## Corpus\n\nI try to include realistic files, for example real docx file, as much as possible. \n\nFiles downloaded from: \n* https://files.fuzzing-project.org/\n* https://github.com/strongcourage/fuzzing-corpus (lots of images)\n* https://github.com/decalage2/oletools/tree/master/tests/test-data (office files mostly)\n\nSee `update.sh`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdobin%2Fwaasa-reflector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdobin%2Fwaasa-reflector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdobin%2Fwaasa-reflector/lists"}