Prototype Pollution in network.model.ts
@dvd233 đang làm issue này rồi.
Từ ngày 13/9/2026.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
- Lĩnh vực
- security
Hướng nghiên cứu
Bắt đầu với updateRequest trong src/network/network.model.ts, sau đó lần theo các điểm vào vConsole.network.update và vConsole.network.add trong src/network/network.exporter.ts. So sánh các bước kiểm tra key hiện có trong src/core/core.ts. Được xem là hoàn thành khi các input proto, constructor và prototype được báo cáo không còn sửa đổi Object.prototype thông qua cả hai public API.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
hello.
This is LY Security Assessment Team.
Share the security vulnerabilities we found.
vConsole Version: 3.16.0-alpha(de7026df97148799c3efcd29577e3eda0788362f)
issue
Possible prototype pollution due to missing id validation in updateRequest in network.model.ts.
updateRequest resolves reqList[id] without validating the id parameter. When id is "__proto__", reqList["__proto__"] returns Object.prototype (via the __proto__ accessor on plain objects), and !!Object.prototype evaluates to true. The subsequent for..in loop then writes all enumerable properties of data directly onto Object.prototype, resulting in global prototype pollution.
This is reachable through two public APIs:
vConsole.network.update(id, item)innetwork.exporter.ts— passesiddirectly toupdateRequestvConsole.network.add(item)innetwork.exporter.ts— copiesitem.idonto the internal proxy viafor..in, then passes it toupdateRequest
Note: setOption() was previously patched for the same class of vulnerability by adding __proto__ / constructor / prototype key checks (core.ts#L518-L521), but the same mitigation was not applied to updateRequest.
poc
// Vector 1: precise injection via update()
vConsole.network.update('__proto__', { polluted: 'pwned' });
console.log({}.polluted); // "pwned"
// Vector 2: mass pollution via add()
vConsole.network.add({ id: '__proto__', url: 'http://example.com', method: 'GET', status: 200 });
console.log({}.url); // "http://example.com/"
console.log({}.status); // 200
console.log({}.method); // "GET"
- Ngôn ngữ chính
- TypeScript
- Star
- 17.5k
- Fork
- 3k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Tencent/vConsole
-
[Network] fetch proxy 读取分块流到 EOF 时抛 TypeError: Cannot read properties of undefined (reading 'length')Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Uncaught TypeError when assigning null to xhr.onreadystatechange/onprogress (breaks hls.js abort)Có thể đã có người làm @cyhano đã nhận 76 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
不发新版 npm 包了吗Đang mở
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 15/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
处理流式数据的错误报警Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
Tất cả issue của Tencent/vConsole
Issue tương tự
-
status: triage type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
WhiteTowerAI/ohmygame#1225 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: KBS TV SDĐang mởstreams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ardia-browser/ardia#5042 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
keycloakify/oidc-spa#211 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày