Skip to content
Info disclosure Disclosed report Beginner

Internal server error 500 at log.veris.in

The Sentry error-reporting endpoint at log.veris.in returned a 500 error and exposed its version and form, and the form accepted unlimited reports without validation. An attacker could gather information about the Sentry version and potentially cause a denial of service by flooding the server with garbage reports.

ak1t4 Follow

Originally disclosed on HackerOne

  • Disclosed after 3 days

INTRO:

i have discovered an internal server error (500) at log.veris.in in sentry app & possible DoS injection with data garbage

EXPLOITABILITY:

Steps:

1)After Sending this request Sentry is crash with an internal server error showing version of sentry and the capability of sending the issue with a form:

https://log.veris.in/_static/31633a13250d151db904018a5b4bfc4d9954a727/sentry/dist

  1. The issue form permit send multiple reports without any validation and 200 code reply like this request:

--

POST /api/embed/error-page/?eventId=40df85725d9745f4b01148e7deab5858&dsn=https%3A%2F%2Feb32d006141e48a8a439a2fe7fe50b43%40log.veris.in%2F1 HTTP/1.1 Host: log.veris.in User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Firefox/45.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate, br Content-Type: application/x-www-form-urlencoded Referer: https://log.veris.in/_static/31633a13250d151db904018a5b4bfc4d9954a727/sentry/dist Content-Length: 48 Cookie: _ga=GA1.2.102943685.1470375862; __utma=82828177.102943685.1470375862.1470375862.1470447007.2; __utmz=82828177.1470375862.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); sentrysid="gAJ9cQEoWAoAAAB0ZXN0Y29va2llWAYAAAB3b3JrZWRxAlUFX25leHRYGQAAAC9hcGkvZW1iZWQvZXJyb3ItcGFnZS9pbi91Lg:1bWbwu:4ElVwbfFwj-m5qT7IQA5bqTFDNk"; csrf=QtgwRAMxUpMON9GE4JWHuSRyONQBsIqs Connection: close

name=test&email=test%40email.com&comments=test&=


and response:

HTTP/1.1 200 OK Server: nginx/1.4.6 (Ubuntu) Date: Tue, 09 Aug 2016 21:34:33 GMT Content-Type: application/json Content-Length: 0 Connection: close Access-Control-Allow-Headers: Content-Type, Authorization, X-Requested-With Content-Language: es Access-Control-Max-Age: 1000 Vary: Accept-Language, Cookie Access-Control-Allow-Origin: Access-Control-Allow-Methods: GET, POST, OPTIONS Strict-Transport-Security: max-age=31536000

--

  1. The POST method can change it for DELETE method, and the server responses with source code of sentry page form (see screenshots)

IMPACT:

*An attacker can use this information for information gathering and possible exploit of sentry app *An attacker can use the post form (without user validation or captcha or limit report) and send multiple reports with garbage data for possible DoS in server resources (cpu, me, disk, etc)

FIX:

Change permissions over sentry app log report and close for unauthorized access

Let me know if more info needed

Best Regards

@ak1t4

Attachments

Captura_de_pantalla_2016-08-09_a_las_18.15.29.png
Captura_de_pantalla_2016-08-09_a_las_18.15.29.png From the original on HackerOne
Captura_de_pantalla_2016-08-08_a_las_1.44.40.png
Captura_de_pantalla_2016-08-08_a_las_1.44.40.png
Captura_de_pantalla_2016-08-08_a_las_1.44.26.png
Captura_de_pantalla_2016-08-08_a_las_1.44.26.png
Captura_de_pantalla_2016-08-08_a_las_0.37.41.png
Captura_de_pantalla_2016-08-08_a_las_0.37.41.png
Captura_de_pantalla_2016-08-09_a_las_18.19.51.png
Captura_de_pantalla_2016-08-09_a_las_18.19.51.png
Captura_de_pantalla_2016-08-09_a_las_18.19.45.png
Captura_de_pantalla_2016-08-09_a_las_18.19.45.png

The original report as published on HackerOne, by ak1t4. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the Sentry error-reporting endpoint lacked input validation and rate limiting, and error handling exposed version details.

Impact

An attacker could gather information about the Sentry version and potentially cause a denial of service by sending many garbage reports, though the text only claims this as a possibility.

What the attacker needed

None

The fix

The Sentry log report permissions should be changed and access closed for unauthorised users.

How it was found

  1. Send a request to the Sentry static path to trigger a 500 error that reveals the Sentry version and a report form.
  2. Submit the report form with test data and observe a 200 response, showing reports are accepted without validation.
  3. Change the request method to DELETE and observe the server returning the source code of the Sentry page form.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Sentry is a tool that collects error reports from applications. The reporter found that its public error-reporting page crashed and showed its version, and that the report form had no checks, so anyone could send unlimited fake reports. This could help an attacker learn about the software and possibly overload the server.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by ak1t4

View all

17 more disclosed reports, best first.

More from Veris

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.