Skip to content

Allow rap2hpoutre/laravel-log-viewer ^3.0 (Laravel 13 support + RCE fix)#27

Open
steffenschmidt wants to merge 1 commit into
aryehraber:masterfrom
steffenschmidt:master
Open

Allow rap2hpoutre/laravel-log-viewer ^3.0 (Laravel 13 support + RCE fix)#27
steffenschmidt wants to merge 1 commit into
aryehraber:masterfrom
steffenschmidt:master

Conversation

@steffenschmidt
Copy link
Copy Markdown

Closes #26.

Widens the rap2hpoutre/laravel-log-viewer constraint from ^2.3.0 to ^2.3 || ^3.0 so Logbook can be installed alongside log-viewer v3.x.

Why

Why this is safe

LogbookController only uses setFile(), pathToLogFile(), all(), getFiles() and getFileName() from LaravelLogViewer. None of these changed between v2.5.0 and v3.1.0 — the diff is just composer constraints, the security fix, and a small refactor in two files.

Testing

Running this on a Statamic 6.19 / Laravel 13 project. Logbook utility loads, lists log files, displays and deletes them as expected. Verified both ways:

  • via a temporary inline alias (v3.1.0 as v2.5.0) before this change

Widen the log-viewer constraint from `^2.3.0` to `^2.3 || ^3.0`.

- Unblocks Laravel 13: log-viewer v2.x caps at Laravel 12, so Logbook
  currently forces Statamic 6 users to stay on Laravel 12
- Pulls in the v3.1.0 security fix for insecure deserialization (RCE)
  and path traversal via query parameters (rap2hpoutre/laravel-log-viewer#320)
- No code changes required: Logbook only uses setFile(), pathToLogFile(),
  all(), getFiles() and getFileName(), none of which changed between
  v2.5.0 and v3.1.0
@aryehraber
Copy link
Copy Markdown
Owner

Thanks @steffenschmidt, will try and give this a test to ensure no breaking changes in the next few weeks when I find some time. Appreciate it 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update rap2hpoutre/laravel-log-viewer constraint to allow v3.x (Laravel 13 + RCE fix)

2 participants