Important security update

As I have noted on other cases, were they to more modularize RouterOS, there is a lot of stuff that could be dropped for the home crowd and not be missed, pretty much eliminating that (potential) issue.

  • Advanced routing protocols
  • Most VPN's
  • IPV6
  • Radius support
  • etc.

(Probably just more cost effective to throw a bigger NAND at the problem though . . . but that won't help the existing 16MB devices . . . )

No need to invent anything. Default configuration come with 192.168.88.0/24. Instead of leaving blank, setting this block to all /ip services fine enough for most users.

Look around. Since selected institutions have access to AI frontier models there is so much more security issues found than ever before. Everywhere. Calling it "backfiring" because MikroTik does their own development - and not just packaging a Linux Distribution - is not recognizing what MikroTik stands for.

All the more reason for the average Joe to stay away from fiddling with ROS until there's a proper consumer interface.

Yeah, that should be a no-brainer, just like the MAC server and all other services should initially only be accessible from that port.

MikroTik, if you happen to read this, please get moving on this and actually do something about it. But please stay in touch with reality and have a proper dialogue with the users here on the forum before deciding how to implement it. We really don't need another "device mode" fiasco.

IMO, that is a big NO!

WebFig doesn't solve the real problem here. RouterOS is simply way too complicated for the average Joe, regardless of whether you use WebFig or Winbox. A different interface doesn't suddenly make all the underlying networking concepts, firewall rules, and security implications easy to understand.

Until MikroTik has a proper consumer interface that hides that complexity, the average Joe really shouldn't be fiddling with a MikroTik device at all. That's exactly why secure defaults matter so much.

Well, that's break quickset ability to set the LAN IP (or at require updates to then update allowed-addresses in /ip/service.). While an interface-list can be stable, which is why the defconf favor interfaces.

So agree the allowed-addresses using interfaces is missed opportunity for another defense. But this is another tradeoff since folks can more easily lock themselves out using "allowed-address" in defconf (e.g. someone forgets to update it when changing IP subnet/etc.). And while two-layers are good, the defconf firewall handles it already.

I think that's why I'm bit less enthused about these small-ish defconf things... I guess my hope MikroTik using their resources running their own high-end clunkers on their code to keep looking to find more vulnerabilities themselves...than scheming DeviceMode2. A concerted effort (perhaps registering with major AI companies as "trusted developers") would likely turn up more than outsiders who have to unwind disassembly. And while some of suggested tactical hardening of defaults may be a good idea... something is going to be open, so you're run reducing odds of whether the next vulnerability is covered by better defaults.

That's a different problem! WebFig provides a level of access for any user that neither requires CLI skills, or loading bloatware. The fact that the "average Joe" does not have the mental firepower needed to use it is a completely different issue to the access mechanism.

(IE, WebFig with a "Hyuck!" mode would hit both targets . . . . "WebFig Lite" anyone?)

Yeah, a locked-down "WebFig Lite" on LAN1 might be the ideal solution for consumer-oriented products. Just enough to be able to change the WiFi name, change the default LAN subnet, and some other basic settings. It could be package-based, so you could replace it with the full version for experienced users.

This has come up in previous discussions, but unfortunately MikroTik doesn't seem particularly interested in it.

I, for one can see why MT is not really interested.

An interface where you can only change the wifi password, subnet, etc. is way more limited than what the competitors offer. And they simply do that market better.

Additionally, a simplified interface leads to the usual sort of segmentation that occured with all the manufacturers whom I saw attempt it: the wizard has limitations, but any time you venture outside these, you get stuck with not only the inherent complexity of the configuration but also all the side effects of the wizard. This could only lead to a Quickset on steroids situation.

Plus, as I'm sure everyone can tell based on the questions on this forum, most people who buy Mikrotiks do so for the additional features.

I don't think it's inherently wrong to target a specific kind of user, and leave the others to alternative manufacturers' ecosystems.

In fairness... QuickSet does show up in WebFig by default... While QuickSet is VERY FAR from ideal, at some level it does let the "Average Joe" use a single (complex) form to change the basics like Wi-Fi name/password, guest network, or VPN. And actually the mobile apps do have a pretty nice setup wizard too.

I do agree that some investment in some cleanup/rationalization/hardening for "average joes" be good. And likely should include some of the new features that target security like getting SSL certs, allow WG/BTH/IPSecVTI as VPN (e.g. current QuickSet uses L2TP/SSTP, and mobile app does not steer you to BTH app or deal with VPN setup).

And to @Larsa point... an initially "more restricted" config could be solved by asking if any services should be exposed as checkbox/etc in a "better QuickSet". And/or more simple (and some might say "draconian") requirement that everyone to use (improved) QuickSet/mobile app/ netinstall to "unlock" the internet on a new router... so that all the security stuff can be setup as needed before router can be used, and forcing "average joe" to make their own security decisions.

But given MikroTik does not have limitless engineers... anything that squashes the known-unknown of future vulnerabilities should be the priority IMO... since at some level it's likely more zero-day-ish bugs out there. While a better experience for "average joes" be nice... I personally care more about avoiding forced/quick upgrades in future.

I’d like to ask those of you who already have your own PoC that allows unauthorized execution of commands via SSH. Does it work for you in ROS6 as well, or only in ROS7?
P.S.: It’s only a matter of time before a public exploit appears.

For those interested here is the SANS Internet Storm Center podcast take on the recent Mikrotik RouterOS CVEs.

https://dshield.org/podcastdetail/10084

ok, since the whole thread is about:

  1. all users who do not close mgmt are .... (replace dots as you wish)
  2. all users need to use WG or similar
  3. it is always user fault

ok, could somebody then explain, WHY ? we have ssh ?

there is no need for SSH because, if we put all-mighty WG on all device, we could simply enable Telnet
and still be protected
so, MT could spare few 100? 200? kb from image
furthermore, why so many forum users wanted ECDSA in MT if SSH is outdated technology?

lets start using WG+Telnet

Well ... we can see tons of issues on this forum from folks who want to use their ROS device to run 3rd party containers ... or as NAS ... or ... well, you get the picture. My point is that most of times it's better to use some (tiny, such as rPI) specialized device, providing those higher level services. And keep using ROS for stuff where it's good (routing, some even use it for WiFi :wink: ).

If you need out-of-band management using SSH, just make a firewall rule on outside interface that only allow specific IP.
If that is not possible due to random IP, you can setup port knocking, so you only enter if you have to correct knock.
But VPN is a better way to go. You can even combine VPN with port knock.
And do log all your Microtik to a sentral site using Splunk or other tools. Then you can setup email/sms alert fore every SSH connection, the you know when some has entered a router.

Yes, we're all talking about consumer devices ... the professional ones (CCR, CRS, ...) come without (much of) config. But for the rest, default config has LAN interface list (which excludes ether1 which by default is intended for WAN ... not to mention any other PtP interface, such as PPPoE ... not enabled by default) ... and default firewall setup drops any connection towards router (management and any other connection) not originating from LAN interface list.

Excerpt from default configuration:

/interface list member add list=LAN interface=bridge comment="defconf"
/interface list member add list=WAN interface=ether1 comment="defconf"
/ip firewall {
  filter add chain=input action=drop in-interface-list=!LAN comment="defconf: drop all not coming from LAN"
}
/ipv6 firewall {
  filter add chain=input action=drop in-interface-list=!LAN comment="defconf: drop everything else not coming from LAN"
}
/tool mac-server set allowed-interface-list=LAN                                                                        
/tool mac-server mac-winbox set allowed-interface-list=LAN

So I'm asking: what else should be there in default configuration?

I don't suppose you're suggesting that this part of config should be immutable (i.e. could not be dropped, changed or removed by user)? Or are you suggesting that MT should hard-wire one of wired ports for OOB management? Or is there something else you're suggesting?

And to all of those suggesting that any of management access might be way better than others (e.g. WebFig vs. ssh): all of management solutions should come with authentication mechanisms. And I think that sharing it between different management interfaces (at least part of it) is acceptable solution (if not industry standard). Which means that if there's a bug in it (if I understand correctly that's the case in this fiasco), then all different management possibilities are subject to same exploit. The only solution is to have "onion" where outer layer is provided using a different implementation (e.g. ssh via bastion host where ssh implementation is different than on ROS devices ... which rules out a ROS router acting as bastion host to access other ROS devices). This is more or less the crux of the "swiss cheese" model with multiple layers of security ... but using identical slices of cheese to form different layers simply doesn't work as those layers will have holes in the exactly same place providing no extra protection.

Make sure all management services are disabled by default and, if enabled, can initially only be accessed from LAN1. Should be simple enough to change, even for junior MikroTik staff :wink:

How can I manage the device if I can’t access it? WTF…

All SoHo devices ship with default firewall rules that prevent any access outside of LAN. Stop trying to reinvent the wheel.

Maybe take a moment to read the thread before replying. You might actually get the context then... :wink:

Exactly..... Until someone or AI, has also cracked WG or IPSEC or OPENVPN :slight_smile: