| 제목 | GL.iNet GL-MT3000 4.4.5 Command Injection |
|---|
| 설명 | An unauthenticated command injection vulnerability exists in the `/cgi-bin/glc` endpoint of the affected product. The `nas-web.so` plugin forwards the `set_user_pwd` JSON request via libcurl HTTP POST to the local `gl_nas_sys` root daemon. The `gl_nas_sys` SET_USER_PWD handler (route 0x65, `FUN_0043db80`) extracts the `password` parameter and passes it through `FUN_0042e200` → `FUN_0042e0b0` → `FUN_0042d340`, which constructs a shell command via `snprintf(cmd, 0x100, "printf \"%s\\n%s\\n\" | smbpasswd -a -s %s", password, password, name)` followed by `system(cmd)`. Because the `password` value is placed inside double quotes, shell command substitution (`$()` and backticks) is still expanded by `/bin/sh -c`, allowing an attacker to execute arbitrary commands as root without requiring any quote-escaping. |
|---|
| 원천 | ⚠️ https://github.com/StrTzz123/iot_vul/blob/main/GL-iNet/MT3000/4.4.5/nas_set_user_pwd_glc_rce/Readme.md |
|---|
| 사용자 | strforexc (UID 94617) |
|---|
| 제출 | 2026. 05. 12. AM 05:06 (30 날 ago) |
|---|
| 모더레이션 | 2026. 06. 06. PM 12:33 (25 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 369072 [GL.iNet GL-MT3000 까지 4.4.5 SET_USER_PWD /cgi-bin/glc FUN_0042e200 비밀번호 권한 상승] |
|---|
| 포인트들 | 20 |
|---|