Advisory

GHSA-vx3h-qwqw-r2wq

Also known as: None

Summary

Inventree Server-Side Request Forgery vulnerability exposes server port/internal IP

Details

Impact

The "download image from remote URL" feature can be abused by a malicious actor to potentially extract information about server side resources. Submitting a crafted URL (in place of a valid image) can raise a server side error, which is reported back to the user.

This error message may contain sensitive information about the server side request, including information about the availability of the remote resource.

Patches

The solution to this vulnerability is to prevent the server from returning any specific information about the observed exception. Instead, a generic error message is returned to the client.

This patch has been applied to the upcoming 0.17.0 release, and also back-ported to the 0.16.5 stable release.

Workarounds

To avoid this issue with unpatched versions, the "download image from remote URL" feature can be disabled in InvenTree, preventing users from accessing this information.

References

Thanks to @febin0x10 for identifying this vulnerability and reporting it to us as per our security policy.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-10-02 17:58 UTC
Modified
2024-12-02 05:45 UTC

Affected packages and fixes

inventree

PyPI · All systems

Affected

  • introduced 0, fixed 0.16.5 (ecosystem)

Fixed versions

0.16.5

Fix

  • Fixed version 0.16.5
    pip install --upgrade inventree==0.16.5

Fix 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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences