Certainly looks like you'll want to get the fork leg replaced. If you don't have the means to do it yourself (or a mate) then best take it to a shop. It's an easy job, should take more than 1 hour if you're replacing the complete fork leg. As already mentioned, the stock Showas pop up on Ebay quite often. Have a browse, but get it sorted.
That’s odd it would take some force to do that damage at that point, so it could be a manufacturing defect but I wouldn’t imagine Ducati letting something as obvious as that through quality control. Has the bike got any other signs of damage have a look at the stops on the bottom yoke and front of the headstock at the bottom to see if they are still there or have been damaged. I wonder if it’s had a chain or something around the wheel and been driven off?
someone said earlier it may have been done by some ham fisted whatsit changing a seal or something. otherwise what force made them come open ? but your right about the mudguard protecting that part. VERY STRANGE