GHSA-j5fj-rfh6-qj85

Suggest an improvement
Source
https://github.com/advisories/GHSA-j5fj-rfh6-qj85
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/05/GHSA-j5fj-rfh6-qj85/GHSA-j5fj-rfh6-qj85.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-j5fj-rfh6-qj85
Aliases
Published
2023-05-12T20:55:36Z
Modified
2024-10-14T18:36:31.307101Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
  • 7.1 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
Planet's secret file is created with excessive permissions
Details

Impact

The secret file stores the user's Planet API authentication information. It should only be accessible by the user, but its permissions allowed the user's group and non-group to read the file as well.

Validation

Check the permissions on the secret file with ls -l ~/.planet.json and ensure that they read as -rw-------

Patches

d71415a8

Workarounds

Set the secret file permissions to only user read/write by hand:

chmod 600 ~/.planet.json
Database specific
{
    "nvd_published_at": "2023-05-12T21:15:09Z",
    "cwe_ids": [
        "CWE-732"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-05-12T20:55:36Z"
}
References

Affected packages

PyPI / planet

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.1

Affected versions

0.*

0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6

1.*

1.0.0
1.0.1
1.1.0
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.3.0
1.3.1
1.3.2
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.4.7
1.4.8
1.4.9
1.4.10
1.5.0
1.5.1
1.5.2

2.*

2.0a1
2.0a2
2.0a3
2.0a5.dev0
2.0a5
2.0a6
2.0.0b1
2.0.0rc1
2.0.0rc2
2.0.0