Description
ERPNext 9.0.0 through 16.50.0 contains a missing authorization vulnerability that allows authenticated users to view stock quantities via whitelisted batch methods. Attackers, including customer portal users, can call get_batch_qty, get_batches_by_oldest or get_pos_reserved_batch_qty to list every item batch with per-warehouse quantities.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Frappe ERPNext
Default version status: unaffected
9.0.0 to ≤ 16.50.0affected
pkg:github/frappe/erpnextReferences
- https://github.com/frappe/erpnext/pull/60147 ↗
- https://github.com/frappe/erpnext/commit/10a2400312afd17df740c6ed64e0803dfbabb623 ↗
- https://github.com/frappe/erpnext/blob/v16.50.0/erpnext/stock/doctype/batch/batch.py#L235-L301 ↗
- https://github.com/frappe/erpnext ↗
- https://www.vulncheck.com/advisories/erpnext-9.0.0-through-16.50.0-missing-authorization-in-batch-lookup-methods ↗