You can get square bits to use in a screwdriver at the hardware store.
The square bit screw is the original and the one in the bottom looks like it’s been replaced. If you get that square bit screw out, you could take it to the hardware store to match it up in size with a philips flat head.