How To Fix PDF Exploit In iOS 4.0.1 Safari Browser After Jailbreaking With JailbreakMe
JailbreakMe 2.0 Star, the userland jailbreak for iPhone 4, iPhone 3GS, 3G on iOS 4.0.1 and iPad 3.2.1 relies on a PDF exploit in Mobile Safari browser. In case you have already jailbroken your iPhone, then it is recommended to fix this security vulnerability to avoid any malicious code being installed on your iDevice.
JailbreakMe 2.0 Star works by taking advantage of this exploit, which allows hackers to inject code while downloading a PDF file in Safari browser. Apple is going to fix this PDF exploit in iOS 4.0.2, but fixing it yourself lets you keep the jailbreak and unlock.
You can fix PDF exploit in iOS 4.0.1 after jailbreaking by installing a Cydia tweak. Available in the BigBoss repository, the ‘PDF Loading Warner’ app gives warning messages whenever a PDF file is being downloaded in Safari. You can then choose to stop the download if it’s from an unknown or un trusted publisher.

UPDATE: Saurik has now released an actual fix for PDF exploit called PDF Patch , unlike PDF Loading Warner which only warns before you download a PDF file. Fix PDF exploit in iPhone, iPod Touch or iPad without updating to iOS 4.0.2/3.2.2.