Advisory

GHSA-j5fj-rfh6-qj85

Also known as: CVE-2023-32303, PYSEC-2023-71

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-05-12 20:55 UTC
Modified
2024-10-14 18:38 UTC

Affected packages and fixes

planet

PyPI · All systems

Affected

  • introduced 0, fixed 2.0.1 (ecosystem)

Fixed versions

2.0.1

Fix

  • Fixed version 2.0.1
    pip install --upgrade planet==2.0.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences