Skip to content

vmpprotect/DLink-RCE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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

About

An authenticated command injection vulnerability exists in the D-Link DVG-N5402GF router. The web-based diagnostic Ping Test functionality fails to properly sanitize user input in the Ping Destination field. An authenticated attacker can inject arbitrary shell commands, resulting in command execution with superuprivileges.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages