HexBrain

Snapchat · Report #301812

Bitmoji source code is accessible

Validstatus
mediumseverity
$1,000bounty
92upvotes
31 Jul 2021disclosed

Summary

The Bitmoji rendering service provided directory listings and access to .jar and .class files in some of those directories. Although the top level site returned a 403 Forbidden, the access control check was not present on subpaths, allowing directory listings, notably at /WEB-INF/ and /META-INF/.

While not arbitrary file system access on the rendering service, it did provide a directory listing and access to some sensitive files. We thank the reporter for pointing us to this issue.

How it was found

hi team,

I'm starting my research on snapchat by scanning all sub-domains on all the domains in-scope: snapchat.com, bitmoji.com, etc.

Let's look at one of the urls, https://rendering-service.prod.us-east.bitstrips.com/

When I request GET https://rendering-service.prod.us-east.bitstrips.com/ The response is 403 Forbidden

After searching, I've found /WEB-INF/ & /META-INF/ directories, which are accessibles and allow directory listing.

Inside /WEB-INF/ we have all the .class files of bitmoji, we can download all the files.

Then by using a java decompiler such as procyon-decompiler we reverse the .class files to make those readable.

best, hermès.

Impact

Source code leaked

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original