South Waziristan and other tribal areas in Pakistan 's northwest are a haven for al-Qaida and Taliban militants who cross into Afghanistan to attack American and NATO troops as well as for Pakistani extremists who are striking targets in Pakistan .