GHSA-wc64-c5rv-32pf

Suggest an improvement
Source
https://github.com/advisories/GHSA-wc64-c5rv-32pf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/05/GHSA-wc64-c5rv-32pf/GHSA-wc64-c5rv-32pf.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-wc64-c5rv-32pf
Aliases
Related
Published
2023-05-11T20:47:56Z
Modified
2023-11-11T05:20:33.855446Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
in-toto vulnerable to Configuration Read From Local Directory
Details

Impact

The in-toto configuration is read from various directories and allows users to configure the behavior of the framework. The files are from directories following the XDG base directory specification [1]. Among the files read is .in_totorc which is a hidden file in the directory in which in-toto is run. If an attacker controls the inputs to a supply chain step, they can mask their activities by also passing in an .in_totorc file that includes the necessary exclude patterns and settings.

RC files are widely used in other systems [2] and security issues have been discovered in their implementations as well [3]. We found in our conversations with in-toto adopters that in_totorc is not their preferred way to configure in-toto. As none of the options supported in in_totorc is unique, and can be set elsewhere using API parameters or CLI arguments, we decided to drop support for in_totorc.

Other Recommendations

Sandbox functionary code as recommended in https://github.com/in-toto/docs/security/advisories/GHSA-p86f-xmg6-9q4x.

References

[1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html [2] https://spec.editorconfig.org/ [3] https://github.blog/2022-04-12-git-security-vulnerability-announced/

Database specific
{
    "nvd_published_at": "2023-05-10T18:15:10Z",
    "cwe_ids": [
        "CWE-15",
        "CWE-610"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-05-11T20:47:56Z"
}
References

Affected packages

PyPI / in-toto

Package

Affected ranges

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

Affected versions

0.*

0.1.1
0.2.dev3
0.2.0
0.2.1
0.2.2
0.2.3.dev2
0.2.3.dev3
0.2.3.dev4
0.2.3.dev5
0.2.3
0.3.0
0.4.0
0.4.1
0.4.2
0.5.0

1.*

1.0.0
1.0.1
1.1.0
1.1.1
1.2.0
1.3.0
1.3.1
1.3.2
1.4.0

Database specific

{
    "last_known_affected_version_range": "<= 1.4.0"
}