inventree
Affected
- introduced
0, fixed0.7.2(ecosystem)
Fixed versions
0.7.2
Fix
- Fixed version
0.7.2pip install --upgrade inventree==0.7.2
Advisory
Also known as: None
Insufficient HTML Sanitization
Impact
Affected versions can have malicious javascript code injected into the users browser by other authenticated users, as data fields retrieved from the database are not properly sanitized before displaying in various front-end views.
The problem here stems from multiple issues:
The attack vector here is limited, as only authenticated users are able to write data to the database, for it to be subsequently rendered on the front-end. However, it is a vulnerability that the InvenTree development team takes seriously.
Solution
The proposed patch for this vulnerability is prevents injection of un-escaped fields into front-end UI elements.
A future patch will also address sanitization of database fields on the "back end", however this will require a much larger effort to refactor multiple database tables.
Patches
0.8.0 release0.7.x branch, applied to the 0.7.2 releaseWorkarounds
There are no workarounds for this issue, users should upgrade to a patched version.
References
Thank you @saharshtapi for bringing this issue to our attention and giving pointers for fixing them.
For more information
If you have any questions or comments about this advisory:
High Basis: The source's own band: HIGH
0, fixed 0.7.2 (ecosystem)0.7.2
0.7.2pip install --upgrade inventree==0.7.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0