Page MenuHomeDevCentral

Don't accept initial / as container name
ClosedPublic

Authored by dereckson on Oct 10 2018, 23:46.
Tags
None
Referenced Files
F24790021: D1879.id4745.diff
Tue, Mar 10, 20:20
F24789787: D1879.id4745.diff
Tue, Mar 10, 20:07
F24788697: D1879.id4746.diff
Tue, Mar 10, 18:20
F24788520: D1879.id4746.diff
Tue, Mar 10, 18:08
Unknown Object (File)
Sun, Mar 8, 10:23
Unknown Object (File)
Sun, Mar 8, 10:06
Unknown Object (File)
Wed, Mar 4, 20:39
Unknown Object (File)
Tue, Feb 24, 03:41
Subscribers
None

Details

Summary

The Docker registry allows to use /foo or foo as container name.

This is a dubious comfort feature, but it would be nice if queries
like %2Ftmp (/tmp URL encoded) doesn't have a lot of chance to
succeed: even if the API is intended to expose metadata of a
filesystem without any secret, it could theoretically be deployed
into environment where filesystem can expose secrets.

Test Plan

Browse {{URL}}/docker/registry/repository/%2Ftmp/

Diff Detail

Repository
rAPIREG Nasqueron private Docker registry API
Lint
Lint Passed
Unit
No Test Coverage
Branch
master
Build Status
Buildable 2902
Build 3150: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Oct 10 2018, 23:46
This revision was automatically updated to reflect the committed changes.