Hi UC!<br />Happy Holidays and all those things people usually say. As my last post of the year I'm going to talk briefly about TR-069 (Technical Report 069), since I find the topic of telecommunications quite interesting and there isn't much information about this protocol on the forum. I think it's important to clarify that this isn't my own research, but rather a compilation from different sources. I'll leave the most interesting stuff as links.<br /><br />
Los enlaces son solo para miembros. Registrate o iniciá sesión
<br /><br />TR-069, also known as CWMP (CPE WAN Management Protocol), is an application-layer protocol used in telecommunications for remote management of end devices (CPE – Customer Premises Equipment), such as the home routers we have at home. Actually there are many devices that can be controlled with this protocol, but since many of them sit behind NAT, we'll focus on the case of routers. Carriers usually use this protocol for diagnostics, maintenance, firmware updates, etc. When a user has a problem and doesn't have the technical knowledge to communicate properly with the operator, remote management protocols like this one are used. Although sometimes it's the carrier's own technical staff who have no clue, but well, that's another story...xD<br /><br />Los enlaces son solo para miembros. Registrate o iniciá sesión
<br /><br />TR-069 uses SOAP over HTTP/S for communication between the CPE and the configuration server, usually known as the ACS (Auto Configuration Server). SOAP is a protocol used for communication between different processes via XML; it allows great interoperability since it can invoke processes running on a wide variety of languages. It also supports authentication. The port assigned to TR-069 is TCP 7547. With a simple search we can see there are a couple of devices using this protocol.<br /><br />Los enlaces son solo para miembros. Registrate o iniciá sesión
<br /><br />As you can see in the following image, it's always the CPE that initiates the connection; for cases where the ACS needs to communicate with the CPE, it can send a Connection Request.<br /><br />Los enlaces son solo para miembros. Registrate o iniciá sesión
<br /><br />OK, now that we have a small idea of how it works, let's see how people have played with this technology. If you stop to think about it, a good starting point is the ACS, since a multitude of devices hang off it. And among the tasks an ACS performs are parameter or firmware updates. If we control the ACS, well, imagine the rest yourselves: DNS, PPP and all their buddies join the party. It can also be an interesting attack point for information gathering, since we can obtain information such as the SSID, hostnames, network MACs, and also some VoIP stuff.<br /><br />Los enlaces son solo para miembros. Registrate o iniciá sesión
<br /><br />The first thing we'll do is search the internet for different ACS software, to see what we find and whether they have interesting vulnerabilities. On one hand we find GenieACS, an ACS implementation written in Node.js, which has an RCE (CVE-2014-4956). We also come across FreeACS, OpenACS (CVE-2014-2840), Vision360 ACS... Once the software is located we have two options: either we look for a vulnerability ourselves, or we check whether one already exists in our usual CVE search engines.<br /><br />Los enlaces son solo para miembros. Registrate o iniciá sesión/i.imgur.com/lWYBk6X.png
<br /><br />Since exploiting vulnerabilities takes us into somewhat murky territory legally speaking, we'll leave it here. What remains is to discuss what we can do to protect ourselves. We should check whether our home router has these features enabled, and if so: does it use SSL? Can we find out what software runs on the ACS? Does it have known vulnerabilities? If the answers to these questions don't convince us, we can always disable TR-069... although that's not always possible. Another option would be to add an extra layer of security with a second router, preferably with firmware like OpenWRT, acting as a firewall. Which is a good thing to do whether or not we have TR-069 enabled, but all the more reason if we do.<br /><br />Links of interest: <br />Los enlaces son solo para miembros. Registrate o iniciá sesión<br />Los enlaces son solo para miembros. Registrate o iniciá sesión<br />Los enlaces son solo para miembros. Registrate o iniciá sesión<br />Los enlaces son solo para miembros. Registrate o iniciá sesión<br /><br />Without much more to add, I'll sign off. I hope you find it interesting.<br />Always yours, @Bael_x42<br />