Nasty smelling basement

We had a homeowner call us and tell us that their basement constantly smells like sewage for some reason. You can see the drain pipe that someone forgot to cap off letting nasty drain gasses into the home. Definitely something that should have been found during the home inspection when they bought the house.