Laravel log file publicly accessible
ID: laravel-log-file
Severity: high
Author: sheikhrishad,geeknik
Tags: laravel,logs,exposure
Description
Section titled “Description”The log file of this Laravel web app might reveal details on the inner workings of the app, possibly even tokens, credentials or personal information.
YAML Source
Section titled “YAML Source”id: laravel-log-file
info: name: Laravel log file publicly accessible author: sheikhrishad,geeknik severity: high description: The log file of this Laravel web app might reveal details on the inner workings of the app, possibly even tokens, credentials or personal information. reference: - https://laravel.com/docs/master/logging metadata: max-request: 1 tags: laravel,logs,exposure
http: - method: GET path: - "{{BaseURL}}/storage/logs/laravel.log"
matchers-condition: and matchers: - type: word part: body words: - "InvalidArgumentException" - "local.ERROR" - "ErrorException" - "syntax error" condition: or
- type: word part: header words: - "text/plain" - "text/x-log" condition: or
- type: status status: - 200# digest: 4a0a00473045022100cf9cce1e7515e2beaa47c6d2acc45b590ca57037f98f90ebfc89aebc7bc464e10220795e1825cbd0800cfe3f51d722c15eadbf21dcb0f7bf0278cf825d62fae4d832:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/exposures/logs/laravel-log-file.yaml"