{"id":19123431,"url":"https://github.com/astteam/ssrf","last_synced_at":"2026-03-04T14:30:58.195Z","repository":{"id":224335515,"uuid":"317378017","full_name":"ASTTeam/SSRF","owner":"ASTTeam","description":"《深入理解WEB漏洞之SSRF漏洞》Server-Side Request Forgery.","archived":false,"fork":false,"pushed_at":"2024-03-01T09:34:46.000Z","size":7256,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T13:36:45.734Z","etag":null,"topics":["0e0w","ssrf"],"latest_commit_sha":null,"homepage":"","language":null,"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/ASTTeam.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-01T00:08:10.000Z","updated_at":"2025-02-11T05:57:32.000Z","dependencies_parsed_at":"2024-02-25T12:23:55.499Z","dependency_job_id":"ac1d431d-3dff-4817-aeb5-7683c7776ab3","html_url":"https://github.com/ASTTeam/SSRF","commit_stats":null,"previous_names":["astteam/ssrf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ASTTeam/SSRF","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASTTeam%2FSSRF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASTTeam%2FSSRF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASTTeam%2FSSRF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASTTeam%2FSSRF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ASTTeam","download_url":"https://codeload.github.com/ASTTeam/SSRF/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ASTTeam%2FSSRF/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30083736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T13:22:36.021Z","status":"ssl_error","status_checked_at":"2026-03-04T13:20:45.750Z","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":["0e0w","ssrf"],"created_at":"2024-11-09T05:25:38.046Z","updated_at":"2026-03-04T14:30:58.148Z","avatar_url":"https://github.com/ASTTeam.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 《深入理解WEB漏洞之SSRF漏洞》\n\n本项目用来收集整理SSRF漏洞的相关内容，包括SSRF的利用方法工具或思路等。也包括SSRF漏洞的挖掘技巧及案例等，站在漏洞利用和漏洞赏金的角度可以更好的理解SSRF！深入理解SSRF，发起悄无声息的渗透！作者：[0e0w](https://github.com/0e0w)\n\n本项目创建于2022年3月3日，最近的一次更新时间为2023年1月29日。本项目会持续更新，直到海枯石烂！\n\n- [01-SSRF漏洞资源]()\n- [02-SSRF漏洞基础]()\n- [03-SSRF漏洞工具]()\n- [04-SSRF渗透测试]()\n- [05-SSRF代码审计]()\n- [06-SSRF漏洞赏金]()\n\n## 01-SSRF漏洞资源\n\n- https://github.com/topics/ssrf\n- https://github.com/search?q=ssrf\n- https://github.com/topics/server-side-request-forgery\n\n一、SSRF书籍文章\n- [ ] [SSRF安全指北](https://security.tencent.com/index.php/blog/msg/179)@腾讯蓝军 silence\n\n二、SSRF培训演讲\n\n三、SSRF其他资源\n- https://kathan19.gitbook.io/howtohunt/ssrf/ssrf\n- https://tttang.com/archive/1648\n- https://www.freebuf.com/articles/web/258449.html\n- https://www.freebuf.com/articles/web/265646.html\n- https://github.com/jdonsec/AllThingsSSRF\n- https://github.com/cujanovic/SSRF-Testing\n- https://github.com/github/securitylab/issues/430\n\n## 02-SSRF漏洞基础\n\n一、SSRF漏洞概念\n- SSRF(Server-Side Request Forgery:服务器端请求伪造) 是一种由攻击者构造形成由服务端发起请求的安全漏洞。一般情况下，SSRF攻击的目标是从外网无法访问的内部系统。\n- 因为它是由服务端发起的，所以它能够请求到与它相连而与外网隔离的内网。也就是说可以利用一个网络请求的服务，当作跳板进行攻击。\n- SSRF 形成的原因往往是由于服务端提供了从其他服务器应用获取数据的功能且没有对目标地址做过滤与限制。如：从指定URL地址获取网页文本内容，加载指定地址的图片，下载等。利用的就是服务端的请求伪造。ssrf是利用存在缺陷的web应用作为代理攻击远程和本地的服务器。\n\n二、SSRF漏洞原理\n\n- SSRF的形成大多是由于服务端提供了从其他服务器应用获取数据的功能且没有对目标地址做过滤与限制。例如，黑客操作服务端从指定URL地址获取网页文本内容，加载指定地址的图片等，利用的是服务端的请求伪造。SSRF利用存在缺陷的Web应用作为代理攻击远程和本地的服务器。\n\n三、SSRF漏洞分类\n- 按照是否回显分：\n  - **Basic SSRF**：在响应中返回结果。如传送一个网址，会返回这个网址的界面或对应的 html 代码。\n  - **Blind SSRF**：响应中不返回服务器中的任何信息。\n  - **Semi SSRF**：响应中不返回请求结果的所有详细信息，但是会暴露一些数据信息。\n- 按照程序语言分类：\n  - [PHP SSRF](https://github.com/FuckPHP/SSRF)\n  - [Java SSRF](https://github.com/HackJava/SSRF)\n  - [ASPX SSRF](https://github.com/Hackaspx/SSRF)\n  - Python SSRF\n  - Golang SSRF\n\n四、SSRF Parameter\n\n- share、wap、、url、link、src、source、target、u、3g、display、sourceURl、imageURL、domain......\n\n五、SSRF Payloads\n\n- https://github.com/tarunkant/Gopherus\n- https://github.com/1ndianl33t/Gf-Patterns\n\n六、SSRF Bypass\n\n- 姿势一\n\n  ```\n  http://127.1:80\n  ```\n\n- 十进制\n  ```\n  http://2130706433/ = http://127.0.0.1\n  http://3232235521/ = http://192.168.0.1\n  http://3232235777/ = http://192.168.1.1\n  http://2852039166/ = http://169.254.169.254\n  ```\n  \n- DNS解析\n  \n  ```\n  http://customer1.app.my.company.127.0.0.1.nip.io = 127.0.0.1\n  ```\n  \n- 其他\n  ```\n  http://169。254。169。254/\n  http://169｡254｡169｡254/\n  http://⑯⑨。②⑤④。⑯⑨｡②⑤④/\n  http://⓪ⓧⓐ⑨｡⓪ⓧⓕⓔ｡⓪ⓧⓐ⑨｡⓪ⓧⓕⓔ:80/\n  http://⓪ⓧⓐ⑨ⓕⓔⓐ⑨ⓕⓔ:80/\n  http://②⑧⑤②⓪③⑨①⑥⑥:80/\n  http://④②⑤｡⑤①⓪｡④②⑤｡⑤①⓪:80/\n  http://⓪②⑤①。⓪③⑦⑥。⓪②⑤①。⓪③⑦⑥:80/\n  http://⓪⓪②⑤①｡⓪⓪⓪③⑦⑥｡⓪⓪⓪⓪②⑤①｡⓪⓪⓪⓪⓪③⑦⑥:80/\n  http://[::①⑥⑨｡②⑤④｡⑯⑨｡②⑤④]:80/\n  http://[::ⓕⓕⓕⓕ:①⑥⑨。②⑤④。⑯⑨。②⑤④]:80/\n  http://⓪ⓧⓐ⑨。⓪③⑦⑥。④③⑤①⑧:80/\n  http://⓪ⓧⓐ⑨｡⑯⑥⑧⑨⑥⑥②:80/\n  http://⓪⓪②⑤①。⑯⑥⑧⑨⑥⑥②:80/\n  http://⓪⓪②⑤①｡⓪ⓧⓕⓔ｡④③⑤①⑧:80/\n  ```\n\n七、SSRF漏洞危害\n\n- 读取或更新内部资源，造成本地文件泄露\n- 将含有漏洞防主机用作代理/跳板攻击内网主机，绕过防火墙等\n- 可以对外网、服务器所在内网、本地进行端口扫描，获取一些服务的banner 信息\n- 对内网 WEB 应用进行指纹识别，通过访问默认文件实现(如：readme文件)\n- 攻击内外网的 web 应用，主要是使用 GET 参数就可以实现的攻击(如：Struts2，sqli)\n\n八、SSRF漏洞修复\n\n- 限制请求的端口只能为Web端口，只允许访问HTTP和HTTPS的请求。\n- 限制不能访问内网的IP，以防止对内网进行攻击。\n- 屏蔽返回的详细信息。\n\n九、SSRF漏洞思考\n\n## 03-SSRF漏洞工具\n\n- 如何开发一个SSRF漏洞的渗透测试和代码审计工具？\n\n一、SSRF主动扫描\n- https://github.com/swisskyrepo/SSRFmap\n- https://github.com/hupe1980/gopherfy\n- https://github.com/ryandamour/ssrfuzz\n\n二、SSRF被动扫描\n- https://github.com/ethicalhackingplayground/ssrf-king\n\n三、SSRF Automation\n\n- https://github.com/ksharinarayanan/SSRFire\n\n四、待整理工具\n- https://github.com/teknogeek/ssrf-sheriff\n- https://github.com/knassar702/scant3r\n- https://github.com/R0X4R/ssrf-tool\n- https://github.com/In3tinct/See-SURF\n- https://github.com/bcoles/ssrf_proxy\n- https://github.com/pikpikcu/XRCross\n- https://github.com/0xAwali/Blind-SSRF\n- https://github.com/arkadiyt/ssrf_filter\n- https://github.com/dreadlocked/SSRFmap\n- https://github.com/Th0h0/autossrf\n- https://github.com/h4fan/ssrfscan\n- https://github.com/junnlikestea/bulkssrf\n- https://github.com/grayddq/SSRF_payload\n- https://github.com/Kevin-sa/SSRF_ex\n- https://github.com/akincibor/SSRFexploit\n- https://github.com/medbsq/ssrf\n- https://github.com/ackerleytng/ssrf-clojure-talk-gowherene\n- https://github.com/redfr0g/ssrfuzzer\n- https://github.com/0xWise64/SSRF_Listener\n- https://github.com/alyrezo/ssrf-bypass\n- https://github.com/grampae/ssrfscan\n- https://github.com/paulveillard/cybersecurity-ssrf\n\n## 04-SSRF渗透测试\n\n一、SSRF漏洞挖掘\n- 漏洞产生场景\n  - 能够对外发起网络请求的地方，就可能存在 SSRF 漏洞\n  - 从远程服务器请求资源（Upload from URL，Import \u0026 Export RSS Feed）\n  - 数据库内置功能（Oracle、MongoDB、MSSQL、Postgres、CouchDB）\n  - Webmail 收取其他邮箱邮件（POP3、IMAP、SMTP）\n  - 文件处理、编码处理、属性信息处理（ffmpeg、ImageMagic、DOCX、PDF、XML）\n\n二、SSRF漏洞实战\n\n三、SSRF利用协议\n\n- PHP\n  - http、https、ftp、gopher、telnet、dict、file 、ldap、php、local_file、local-file\n  - https://xz.aliyun.com/t/12374\n- Java\n\n四、SSRF攻击内网\n- 攻击内网应用\n  - redis\n  - FastCGI\n  - mysql\n  - postgresql\n  - zabbix\n  - pymemcache\n  - smtp\n- SSRF Canary\n  - https://github.com/assetnote/blind-ssrf-chains\n- 攻击内网案例\n  - https://www.sqlsec.com/2021/05/ssrf.html\n\n五、SSRF高级利用\n- 利用file协议读取本地文件。\n- 对外网、服务器所在内网及本地系统进行端口扫描。\n- 攻击运行在内网或本地的应用程序。\n- 对内网Web应用进行指纹识别，获取企业单位内部的资产信息。\n- 通过HTTPGET的请求方式来攻击内外网的Web应用。\n- DoS攻击（请求大文件，始终保持连接keep-alive always）。\n\n## 05-SSRF代码审计\n\n一、SSRF漏洞靶场\n- https://github.com/incredibleindishell/SSRF_Vulnerable_Lab\n- https://github.com/sqlsec/ssrf-vuls\n- https://github.com/Captain-K-101/Ssrf-labs\n- https://github.com/adeadfed/simple-ssrf-app\n- https://github.com/m6a-UdS/ssrf-lab\n\n二、SSRF审计原理\n\n三、SSRF危险函数\n- PHP\n  - file_get_contents()\n  - fsockopen()\n  - curl_exec()\n  - fopen()\n  - fopen()\n  - curl()\n- Java\n- ASPX\n- Python\n  - urllib、urllib2、requests\n- Golang\n\n四、SSRF漏洞分析\n- Redis\n- FFmpeg\n\n## 06-SSRF漏洞赏金\n\n- https://github.com/HoneTeam/SSRF\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastteam%2Fssrf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastteam%2Fssrf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastteam%2Fssrf/lists"}