Inside the lid itself is rear window seal or wiper spindle seal. Window is glues in, so specialist window fitter job to reseal. Wiper spindle needs new grommet.
Inside boot itself likely to be rear lamps where they fit to the body, or the tailgate seal. Pour water around the lamps from a watering can or running hose, no pressure.