原始 OSV JSON{
"id": "GHSA-9w6v-m7wp-jwg4",
"aliases": [
"CVE-2020-11021"
],
"details": "### Impact\nIf consumers of the http-client:\n 1. make an http request with an authorization header\n 2. that request leads to a redirect (302) and\n 3. the redirect url redirects to another domain or hostname \n\nThe authorization header will get passed to the other domain.\n\nNote that since this library is for actions, the GITHUB_TOKEN that is available in actions is generated and scoped per job with [these permissions](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token).\n\n### Patches\nThe problem is fixed in 1.0.8 at [npm here](https://www.npmjs.com/package/@actions/http-client). In 1.0.8, the authorization header is stripped before making the redirected request if the hostname is different.\n\n### Workarounds\nNone.\n\n### References\nhttps://github.com/actions/http-client/pull/27\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in https://github.com/actions/http-client/issues",
"summary": "Http request which redirect to another hostname do not strip authorization header in @actions/http-client",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.8"
}
]
}
],
"package": {
"name": "@actions/http-client",
"ecosystem": "npm"
}
}
],
"modified": "2021-08-25T21:03:11Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"
}
],
"published": "2020-04-29T17:58:53Z",
"references": [
{
"url": "https://github.com/actions/http-client/security/advisories/GHSA-9w6v-m7wp-jwg4",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-11021",
"type": "ADVISORY"
},
{
"url": "https://github.com/actions/http-client/pull/27",
"type": "WEB"
},
{
"url": "https://github.com/actions/http-client/commit/f6aae3dda4f4c9dc0b49737b36007330f78fd53a",
"type": "WEB"
},
{
"url": "https://github.com/actions/http-client",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-200"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2020-04-29T18:15:00Z",
"github_reviewed_at": "2020-04-29T17:58:41Z"
}
}