Описание
pyload-ng has a WebUI JSON permission mismatch that lets ADD/DELETE users invoke MODIFY-only actions
Summary
Several WebUI JSON endpoints enforce weaker permissions than the core API methods they invoke. This allows authenticated low-privileged users to execute MODIFY operations that should be denied by pyLoad's own permission model.
Confirmed mismatches:
ADDuser can reorder packages/files (order_package,order_file) via/json/package_orderand/json/link_orderDELETEuser can abort downloads (stop_downloads) via/json/abort_link
Details
pyLoad defines granular permissions in core API:
order_packagerequiresPerms.MODIFY(src/pyload/core/api/__init__.py:1125)order_filerequiresPerms.MODIFY(src/pyload/core/api/__init__.py:1137)stop_downloadsrequiresPerms.MODIFY(src/pyload/core/api/__init__.py:1046)
But WebUI JSON routes use weaker checks:
/json/package_orderuses@login_required("ADD")then callsapi.order_package(...)(src/pyload/webui/app/blueprints/json_blueprint.py:109-117)/json/link_orderuses@login_required("ADD")then callsapi.order_file(...)(src/pyload/webui/app/blueprints/json_blueprint.py:137-145)/json/abort_linkuses@login_required("DELETE")then callsapi.stop_downloads(...)(src/pyload/webui/app/blueprints/json_blueprint.py:123-131)
Why this is likely unintended (not just convenience):
- The same JSON blueprint correctly protects other edit actions with
MODIFY:/json/move_package->@login_required("MODIFY")(json_blueprint.py:188-196)/json/edit_package->@login_required("MODIFY")(json_blueprint.py:202-217)
- The project UI exposes granular per-user permission assignment (
settings.html:184-190), implying these boundaries are intended security controls.
PoC
Environment:
- Repository version:
0.5.0b3(VERSIONfile) - Commit tested:
ddc53b3d7
PoC A (ADD-only user invokes MODIFY-only reorder):
Observed output:
PoC B (DELETE-only user invokes MODIFY-only stop_downloads):
Observed output:
Impact
Type:
- Improper authorization / permission-bypass between WebUI and core API permission model.
Scope:
- Horizontal privilege escalation among authenticated non-admin users.
- Not admin takeover, but unauthorized execution of operations explicitly categorized as
MODIFY.
Security impact:
- Integrity impact: unauthorized queue/file reordering by users lacking
MODIFY. - Availability impact: unauthorized abort of active downloads by users lacking
MODIFY.
Пакеты
pyload-ng
<= 0.5.0b3
Отсутствует
Связанные уязвимости
pyLoad is a free and open-source download manager written in Python. Prior to 0.5.0b3.dev97, the /json/package_order, /json/link_order, and /json/abort_link WebUI JSON endpoints enforce weaker permissions than the core API methods they invoke. This allows authenticated low-privileged users to execute MODIFY operations that should be denied by pyLoad's own permission model. This vulnerability is fixed in 0.5.0b3.dev97.
pyLoad is a free and open-source download manager written in Python. P ...