Skip to content

MiTM Make Admin

Jmaxxz edited this page Aug 2, 2016 · 3 revisions

August supports multiple user types. For example owners are suppose to be able to access alter lock settings while guests are not. While the application makes it appear that this is true it is not. The only component which attempts to enforce this is the application. As with any system any security control which is enforced by the UI isn't a proper security control because it can be easily avoided or bypassed by the user.

With regards to accessing the locks settings one of the easiest ways for guests to achieve this is to manipulate API responses to say the user is the lock's owner. When the following code is run via mitmproxy's -s option guests can gain access to the lock's settings thru the official mobile application.

def response(context, flow):
	flow.response.content = flow.response.content.replace('"user"', '"superuser"')