CVE-2023-20902Medium· 5.9▾ SunlitHarbor timing attack risk
▾ Sunlit zone — Low / medium · no exploitation signal
impact 32.5 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 9.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
0.4%
In the Harbor jobservice container, the comparison of secrets in the authenticator type is prone to timing attacks. The vulnerability occurs due to the following code: https://github.com/goharbor/harbor/blob/aaea068cceb4063ab89313d9785f2b40f35b0d63/src/jobservice/api/authenticator.go#L69-L69 To avoid this issue, constant time comparison should be used.
subtle.ConstantTimeCompare([]byte(expectedSecret), []byte(secret)) == 0
This attack might be possible theoretically, but no workable proof of concept is available, and access complexity is set at High. The jobservice exposes these APIs
Create a job task --- POST /api/v1/jobs
Get job task information --- GET /api/v1/jobs/{job_id}
Stop job task --- POST /api/v1/jobs/{job_id}
Get job log task --- GET /api/v1/jobs/{job_id}/log
Get job execution --- GET /api/v1/jobs/{job_id}/executions
Get job stats --- GET /api/v1/stats
Get job service configuration --- GET /api/v1/config
It is used to create jobs/stop job tasks and retrieve job task information. If an attacker obtains the secrets, it is possible to retrieve the job information, create a job, or stop a job task.
The following versions of Harbor are involved: <=Harbor 2.8.2, <=Harbor 2.7.2, <= Harbor 2.6.x, <=Harbor 1.10.17
Harbor 2.8.3, Harbor 2.7.3, Harbor 1.10.18
Because the jobservice only exposes HTTP service to harbor-core containers, blocking any inbound traffic from the external network to the jobservice container can reduce the risk.
Thanks to Porcupiney Hairs for reporting this issue.
github.com/goharbor/harbor < 1.10.18github.com/goharbor/harbor >= 2.0.0, < 2.7.3github.com/goharbor/harbor >= 2.8.0, < 2.8.3Upgrade to a patched release:
github.com/goharbor/harbor 1.10.18github.com/goharbor/harbor 2.7.3github.com/goharbor/harbor 2.8.3Connected by shared product, vendor, weakness, or advisory.
CVE-2024-22261Low· 2.7SQL Injection in Harbor scan log API
CVE-2020-13794Medium· 4.3Authenticated users can exploit an enumeration vulnerability in Harbor
CVE-2024-22244Medium· 4.3Open Redirect URL in Harbor
CVE-2020-29662Medium· 5.3"catalog's registry v2 api exposed on unauthenticated path in Harbor"
CVE-2026-92770Medium· 6.5Harbor through 2.15.2 fails to properly restrict the q query parameter filtering on scanner registration access credentials