{"id":13841780,"url":"https://github.com/godzeo/go-gin-vul","last_synced_at":"2026-01-14T14:32:34.663Z","repository":{"id":139212347,"uuid":"554931271","full_name":"godzeo/go-gin-vul","owner":"godzeo","description":"GO语言漏洞靶场  GIN框架 支持docker一键启动","archived":false,"fork":false,"pushed_at":"2023-03-21T13:35:36.000Z","size":25699,"stargazers_count":76,"open_issues_count":1,"forks_count":17,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T14:29:13.940Z","etag":null,"topics":["go","golang","vulnerability-range"],"latest_commit_sha":null,"homepage":"","language":"Go","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/godzeo.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":"2022-10-20T16:44:33.000Z","updated_at":"2025-04-19T17:45:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"95adf379-6003-4d43-9fc6-9c5fdaa44763","html_url":"https://github.com/godzeo/go-gin-vul","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/godzeo/go-gin-vul","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godzeo%2Fgo-gin-vul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godzeo%2Fgo-gin-vul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godzeo%2Fgo-gin-vul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godzeo%2Fgo-gin-vul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/godzeo","download_url":"https://codeload.github.com/godzeo/go-gin-vul/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/godzeo%2Fgo-gin-vul/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28423373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["go","golang","vulnerability-range"],"created_at":"2024-08-04T17:01:21.068Z","updated_at":"2026-01-14T14:32:34.653Z","avatar_url":"https://github.com/godzeo.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Go Gin vulnerability Range \n\n# 0x00 Introduction\n\nWeb application build Golang with Vulnerability\n\n一个go写的WEB漏洞靶场，实际自己写一下，加固一下知识，也偶尔测试waf的时候，用一下自己的靶场\n\nThe vulnerability websit with Go/GIN , the actual write their own, to strengthen the knowledge, but also occasionally test the WAF when you use their own range\n\n整体的构建是最常见的 GIN 框架，加入了自己写的几个接口\n\nGIN框架 整个web框架是go-gin-Example 上面改的，没有前端框架，只有一个swagger，直接发包吧\n\n后期有时间再加前端吧，对于安全工程师前端是......\n\n\n\n\n# 0x01 vulnerability\n\n```\nsql inject\nCommand Injection\nReflex xss\nStore xss\ncors\nredirect\nfileread\nunzip\ndirfile\n\nJWT\nCBC bit flipping attack（todo）\n\n```\n![img.png](doc/img/img.png)\n\n# 0x02 How to Code Run 安装部署🚀\n\n## 0x02 docker 一键启动\n首先刚刚加入了docker 可以一键启动，自行安装docker 和 docker-compose\n\n```\ncd docker\ndocker-compose up -d\n\n```\n访问 http://127.0.0.1:8080/  \n\n漏洞接口就参考doc https://github.com/godzeo/go-gin-vul/blob/main/doc/vul.md\n\n\n## 0x03手动搭建\n1 需要准备mysql和redis\n\n2 修改配置conf/app.ini\n```\n[database]\nType = mysql\nUser = root\nPassword = 123456\nHost = 127.0.0.1:3066\nName = blog\nTablePrefix = blog_\n\n[redis]\nHost = 127.0.0.1:6379\nPassword =\nMaxIdle = 30\nMaxActive = 30\nIdleTimeout = 200\n```\n\n3 自己创建对应的数据库 运行 conf/blog.sql 构建数据库\n\n4 运行主程序\n```\ngo mod tidy\ngo run main.go\n```\n\n# 漏洞文档\n漏洞接口和代码分析在\nhttps://github.com/godzeo/go-gin-vul/blob/main/doc/vul.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodzeo%2Fgo-gin-vul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgodzeo%2Fgo-gin-vul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgodzeo%2Fgo-gin-vul/lists"}