Is there such a thing as an unsafe router which is still unsafe after installing OpenWRT?
For example, privacy violating linksys or netgear, or devices with components running improper firmware with a 14 year old vulnerability?
The reason that I ask, although I don't want this to impact the quality of answers, is that I'm shopping for a new router that is secure and private but rather than paying commercial and industrial prices I would rather get a consumer router and overwrite it's software.
I'm no expert, but I would think overwriting the firmware would generally make the router "safe".
For it to not be safe, there would need to be some aspect of the firmware that is not overwritten, but still executed somehow. Something like a co-processor, or some convoluted flash arrangement.
But I don't think that would be the case, because that would almost definitely drive up the price. I can't say for sure, but that's my best guess.
The other potential vulnerability is that some devices have two flash regions, to be able to roll back in case a firmware update is bad (I had a linksys device with this configuration). So you might flash OpenWRT, but if the router gets reset a couple times (like with a power outage, for example), it could load the previous (commercial) firmware. There are ways to deal with it, but if you're looking to buy a new device, it'll be easy enough to avoid those cases.
For what it's worth, I've had great luck with OpenWRT on a number of TP-Link devices.
... You can always get a SBC like a raspberry pi and set up your own router using bsd or Linux 😅 definitely a challenge but it's doable. I have a pi set up to bridge my wifi to an Ethernet LAN and it's only a few packages and some firewall rules.
It really depends on your requirements, looks like you can maybe get a wifi banana pi board like https://wiki.banana-pi.org/Banana_Pi_BPI-R3 for $130 USD, and you can pay a lot more for more capable hardware.
Maybe it'll be worth the hassle of maintenance to know there's no sketchy firmware on your router?