Merge pull request #8535 from kazet/less-history

Less history
patch-1
Dhiyaneshwaran 2023-11-06 17:04:04 +05:30 committed by GitHub
commit e68b7c730b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,42 @@
id: lesshst-history
info:
name: Less History - File Disclosure
author: kazet
severity: low
description: |
LESSHST file is a Less History File. LESSHST file is a Less History File. Less is a terminal pager program on Unix, Windows, and Unix-like systems used to view (but not change) the contents of a text file one screen at a time.
metadata:
max-request: 1
shodan-query: html:"lesshst"
verified: true
tags: misconfig,disclosure,config,files
http:
- method: GET
max-redirects: 1
path:
- "{{BaseURL}}/.lesshst"
matchers-condition: and
matchers:
- type: word
words:
- ".less-history-file:"
- type: word
part: response
words:
- "<?xml"
- "<env"
- "application/javascript"
- "application/json"
- "application/xml"
- "html>"
- "text/html"
- "image/"
negative: true
- type: status
status:
- 200