Skip to content
SSRF Disclosed report Intermediate

Full read SSRF in www.evernote.com that can leak aws metadata and local file inclusion

An endpoint that fetches a URL from a base64-encoded path parameter could be abused to read local files and access internal hosts, including AWS metadata. An attacker could leak arbitrary files from the web server and read responses from internal services.

neolex Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 33 hours
  • Fixed in 2 days
  • Paid in 2 days
  • Disclosed after 7 months

Summary by the program

Summary:

The following endpoint was found to be vulnerable to SSRF : https://www.evernote.com/ro/aHR0cDovLzE2OS4yNTQuMTY5LjI1NC8jdGVzdC5qcw==/-1430533899.js

The endpoint take a path in url and retrieve its content. it is supposed to be use on path but it can be used on URL to get access to internal network :SSRF And It can also be used with file uri : Local file inclusion.

Steps To Reproduce:

Leak Local file:

  • Open the following url :

https://www.evernote.com/ro/ZmlsZTovLy9ob21lL2FiZW5hdmlkZXMvIy5qcw==/-1430533899.js

The payload is base64 encoded of : file:///home/abenavides/#.js

the # is used because the end of the url must be in javascript but to ignore it in uri i made it after the #

it leaks the content of the directory : ███

you can also leak file with : https://www.evernote.com/ro/ZmlsZTovLy9ldGMvcGFzc3dkIy5qcw==/-1430533899.js ███████

SSRF :

You can also use url to trigger SSRF :

  • To have access to aws metadata you can use the following url :

https://www.evernote.com/ro/aHR0cDovLzE2OS4yNTQuMTY5LjI1NC8jLmpz/-1430533899.js

█████

Impact

The impact is critical. An attacker can leak abitrary file in the webserver of www.evernote.com And access any internal host of evernote, including awsmetadata with full response read.

I didn't tried to escalate the bug to not "cross the line", and because I think it clearly demonstrate the critical impact already.

Best regards.

Summary by the researcher

Critical SSRF on evernote, I made a blog post about this vulnerability here : https://blog.neolex.dev/13/ Best regards

The original report as published on HackerOne, by neolex. 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 endpoint accepted a base64-encoded URL and fetched it without validating the scheme or destination, allowing file and internal network access.

Impact

An attacker could leak arbitrary files from the web server and access any internal host, including AWS metadata, with full response read.

What the attacker needed

None

How it was found

  1. Open the crafted URL with a base64-encoded file URI to list a directory.
  2. Open a similar URL pointing to a system file to read its contents.
  3. Open a URL with a base64-encoded internal address to reach AWS metadata.

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.

The website had a feature that took a web address, decoded it, and fetched whatever was at that address. Because it did not check where the address pointed, someone could ask it to fetch files on the server itself or services on the internal network that are not meant to be reachable from outside.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More from Evernote

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.