GHSA-3fvf-2gp4-89wq

Suggest an improvement
Source
https://github.com/advisories/GHSA-3fvf-2gp4-89wq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-3fvf-2gp4-89wq/GHSA-3fvf-2gp4-89wq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3fvf-2gp4-89wq
Published
2022-03-18T23:17:15Z
Modified
2024-12-05T05:24:22.227992Z
Summary
Possibility for Denial of Service by overwriting PHP files with language exports
Details

Impact

Laravel Translation Manager didn't check the locale name, which allowed directory traversal when exporting files. The content would be a PHP file returning an array of translations, but this could lead to unexpected results, like denial of service. Access to the Laravel Translation Manager is required, because a new locale would have to be added and published.

Patches

Version 0.6.2 fixes this issue.

Workarounds

Only allow trusted admins to publish/edit translations.

References

https://github.com/barryvdh/laravel-translation-manager/pull/417

For more information

If you have any questions or comments about this advisory: * Open an issue in https://github.com/barryvdh/laravel-translation-manager * Email me (see Github profile)

Credits

Found and reported by Natalia Trojanowska

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-03-18T23:17:15Z"
}
References

Affected packages

Packagist / barryvdh/laravel-translation-manager

Package

Name
barryvdh/laravel-translation-manager
Purl
pkg:composer/barryvdh/laravel-translation-manager

Affected ranges

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

Affected versions

v0.*

v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.2.6
v0.2.7
v0.2.8
v0.2.9
v0.3.0
v0.4.0
v0.4.1
v0.4.2
v0.5.0
v0.5.1
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.5.6
v0.5.7
v0.5.8
v0.5.9
v0.5.10
v0.6.0
v0.6.1