2 years ago I bought my 2010 CX-9 GT AWD from the dealer with 20k miles. Before signing on the bottom line, we put it up on the lift at the dealer.
I saw the same damage you have - somebody backed into something on the right corner and the BSM module was swinging on its wiring harness.
It just...