Somewhere between Holes by Louis Sachar and The Hunt for the Seventh by Christine Morton Shaw.
The first is about a boy who's family was cursed due to a debt his great grandfather didn't pay. He gets sent to a boys reform camp as punishment for a crime he didn't commit. And while there he discovers there's more to his Great grandfather's story than anyone ever knew.
The second is a story about a boy who moves into a haunted mansion with his family (Unintentionally of course) and while there he encounters the ghosts of six children who all died mysteriously, they all reach out to him to help them avert a dark, ancient prophecy that has plagued the caste for decades. And it ends with a plot twist that you'll never see coming!