Page MenuHomeDevCentral

Don't accept initial / as container name
ClosedPublic

Authored by dereckson on Oct 10 2018, 23:46.
Tags
None
Referenced Files
F2829565: D1879.id.diff
Fri, Apr 19, 08:47
Unknown Object (File)
Sun, Apr 14, 11:34
Unknown Object (File)
Sun, Apr 7, 10:00
Unknown Object (File)
Sun, Apr 7, 10:00
Unknown Object (File)
Sat, Apr 6, 11:25
Unknown Object (File)
Sat, Mar 30, 19:47
Unknown Object (File)
Sat, Mar 30, 19:27
Unknown Object (File)
Sat, Mar 30, 10:56
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 Not Applicable
Unit
Tests Not Applicable

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.