Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1000 Bytes

File metadata and controls

37 lines (24 loc) · 1000 Bytes

D-Link DVG-N5402GF – Authenticated RCE

Credits to me ( finding rce ) and nitrix ( showing me router and helping out when i was stumped )

Summary

An authenticated command injection vulnerability exists in the DVG-N5402GF router.
The Ping diagnostic page fails to sanitize user input, allowing arbitrary command execution as root.


Affected Device

  • Vendor: D-Link
  • Model: DVG-N5402GF
  • Component: Login -> Maintenance -> Diagnostics -> Ping Test
  • Fofa Query: "D-Link VoIP Wireless Router"

Vulnerability

The Ping Destination parameter is passed directly to a shell command with little filtering. The filtering can just be wiped with using anything with letters, example localhost.

Example payload:

localhost;echo hi

This will execute echo hi ( duh ) with full superuser priviliges.


RCE Proof