Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. barryvdh/laravel-translation-manager
  4. ›
  5. GMS-2022-455

GMS-2022-455: Possibility for Denial of Service by overwriting PHP files with language exports

March 18, 2022 (updated March 22, 2022)

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

References

  • github.com/advisories/GHSA-3fvf-2gp4-89wq
  • github.com/barryvdh/laravel-translation-manager/security/advisories/GHSA-3fvf-2gp4-89wq

Code Behaviors & Features

Detect and mitigate GMS-2022-455 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.2

Fixed versions

  • 0.6.2

Solution

Upgrade to version 0.6.2 or above.

Source file

packagist/barryvdh/laravel-translation-manager/GMS-2022-455.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:03 +0000.