Jump to: navigation, search

OSSN/OSSN-0105

45px-Information icon.svg.png This wiki page is an outdated copy of OSSN-0105.

The canonical version of this OpenStack Security Note is published at docs.openstack.org/security-notes/OSSN-0105.html. Any future updates to this OSSN must be proposed through Gerrit against the openstack/security-doc repository.

Glance legacy Tasks import bypasses image import URI filtering

Summary

The deprecated Glance /v2/tasks API accepts type=import tasks that bypass import_filtering_opts, allowing an admin to fetch internal URLs from the Glance service network (SSRF). The tasks API has been admin-only since Xena and deprecated for several releases.

Affected Services / Software

  • glance: >=30.0.0 <30.3.0, >=31.0.0 <31.1.1, ==32.0.0

Discussion

The legacy tasks import path uses a permissive URI validator that only checks for http:// or https:// prefixes, bypassing the host and port restrictions enforced by the modern web-download import.

Recommended Actions

Disable the legacy tasks API via policy if you are not using it. Otherwise, upgrade Glance to a version containing the fix.

Patches

The following reviews contain the fix for this issue:

Credits

Tim Shephard, roiai.ca

Contacts / References

  • Authors: Goutham Pacha Ravi, Red Hat