RUSTSEC-2022-0088

Source
https://rustsec.org/advisories/RUSTSEC-2022-0088
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0088.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2022-0088
Aliases
Published
2022-08-07T12:00:00Z
Modified
2023-11-08T04:10:15.123159Z
Severity
  • 5.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N CVSS Calculator
Summary
`tauri`'s `readDir` endpoint allows possible enumeration outside of filesystem scope
Details

It is possible for readDir to incorrectly enumerate files from a symlinked directory if called recursively when specifying an empty string for the dir parameter as outlined in this issue.

This is corrected in this PR by checking if a directory is a symlink before reading from it.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / tauri

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
1.0.6

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N",
    "informational": null,
    "categories": [
        "privilege-escalation"
    ]
}