Millions of PDF invisibly embedded with your internal disk paths

看板Bugtraq作者時間16年前 (2009/11/24 04:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
Millions of PDF invisibly embedded with your internal disk paths ---------------------------------------------------------------- I found an interesting privacy issue while analyzing PDF files. This bug occurs when you are using Internet Explorer to print locally saved web = pages as PDF and affects all IE versions including IE8. It does not matter = which PDF generation software you are using like Adobe Acrobat Professional, CutePDF, PrimoPDF, etc as long as you are invoking it from inside the IE print function. In Windows, even when your default browser is not IE and = if you right click a file to select the PRINT from the context menu, then = by default it invokes the IE print handler. So, you will still see this = issue in the generated PDF. This bug is NOT ABOUT the local disk path appearing in the FOOTER of = your pdf since it is clearly visible and already known by most people. This = is easy enough to hide by just going File -> Page Setup -> Change the = Footer value from =93URL=94 to =93-Empty-=94. After doing that, you will not = expect your internal disk path being put anywhere else. However, that does not = happen. The privacy issue arises from the fact that your local disk path gets invisibly embedded inside your PDF in the title attribute. Only when you open the file in an Editor like Notepad, you will see it. Currently, = there is no option in IE to disable it. The only workaround is to manually = nullify this value by editing the PDF file. Note that this problem does not = occur when using other browsers such as Firefox and Chrome. In fact, Chrome handles the other footer issue intelligently as well by showing your = disk path as =93=85=94, rather than exposing it. Proof of Concept: ----------------- Steps to reproduce: ------------------- 1. Pick a .HTM or .HTML or .MHT file on your local computer. 2. Open this file in IE and click Ctrl-P. OR Right-click the file in explorer and select PRINT from context menu. 4. Select any PDF writer as Printer such as Adobe PDF / CutePDF / = PrimoPDF / etc. 5. Click Print. When the PDF writer asks for a filename, provide any = name. 6. Open the generated pdf in notepad, and search for =93file://=94 = without quotes. Search for this on your favorite search engine (Google/Bing) ------------------------------------------------------------ filetype:pdf file c (htm OR html OR mhtml) Google Search 1 (for drive C) [http://www.google.com/search?hl=3Den&q=3Dfiletype%3Apdf+file+c+%28htm+OR= +html+O R+mhtml%29&btnG=3DSearch&aq=3Df&oq=3D&aqi=3D] =96 4 million results Google Search 2 (for drive D) [http://www.google.com/search?hl=3Den&q=3Dfiletype%3Apdf+file+d+%28htm+OR= +html+O R+mhtml%29&btnG=3DSearch&aq=3Df&oq=3D&aqi=3D] =96 13 million results and so on=85. (I added till drive letter J and total was more than 50 million=85.) So, out of 280 million pdfs accessible on the internet, more than 20% = look to be exposing internal disk paths which is a huge number. I have = contacted the Microsoft and Adobe Security Teams about this issue. Microsoft has = plans to fix this in IE9, while Adobe has opened the case but hasn=92t planned = the timelines yet. Examples: http://www.eda.gov/PDF/EDA_vol1;%20Issue10.pdf 01.<x:xmpmeta xmlns:x=3D"adobe:ns:meta/" x:xmptk=3D"Adobe XMP Core = 4.0-c316 44.253921, Sun Oct 01 2006 17:14:39"> 02.=A0=A0=A0<rdf:RDF = xmlns:rdf=3D"" rel="nofollow">http://www.w3.org/1999/02/22-rdf-syntax-ns#"> 03.=A0=A0=A0=A0=A0=A0<rdf:Description rdf:about=3D"" 04.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0xmlns:dc=3D"http://purl.org/dc/ele= ments/1.1/"> 05.=A0=A0=A0=A0=A0=A0=A0=A0=A0<dc:format>application/pdf</dc:format> 06.=A0=A0=A0=A0=A0=A0=A0=A0=A0<dc:creator> 07.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0<rdf:Seq> 08.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0<rdf:li>LewtasS</rdf:li> 09.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0</rdf:Seq> 10.=A0=A0=A0=A0=A0=A0=A0=A0=A0</dc:creator> 11.=A0=A0=A0=A0=A0=A0=A0=A0=A0<dc:title> 12.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0<rdf:Alt> 13.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0<rdf:li = xml:lang=3D"x-default">file://C:\Documents and Settings\lewtass\Desktop\eda newsletter</rdf:li> 14.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0</rdf:Alt> 15.=A0=A0=A0=A0=A0=A0=A0=A0=A0</dc:title> 16.=A0=A0=A0=A0=A0=A0</rdf:Description> http://www.oregon.gov/OMD/OEM/plans_train/grant_info/fy2009_hsgp_investme= nt_ justification.pdf 01.<x:xmpmeta xmlns:x=3D"adobe:ns:meta/" x:xmptk=3D"3.1-701"> 02.=A0=A0=A0<rdf:RDF = xmlns:rdf=3D"" rel="nofollow">http://www.w3.org/1999/02/22-rdf-syntax-ns#"> 03.=A0=A0=A0=A0=A0=A0<rdf:Description rdf:about=3D"" 04.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0xmlns:pdf=3D"http://ns.adobe.com/p= df/1.3/"> 05.=A0=A0=A0=A0=A0=A0=A0=A0=A0<pdf:Producer>Acrobat Distiller 7.0.5 = (Windows)</pdf:Producer> 06.=A0=A0=A0=A0=A0=A0</rdf:Description> 07.=A0=A0=A0=A0=A0=A0<rdf:Description rdf:about=3D"" 08.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0xmlns:xap=3D"http://ns.adobe.com/x= ap/1.0/"> 09.=A0=A0=A0=A0=A0=A0=A0=A0=A0<xap:CreatorTool>PScript5.dll Version = 5.2.2</xap:CreatorTool> 10.=A0=A0=A0=A0=A0=A0=A0=A0=A0<xap:ModifyDate>2009-03-18T15:07:10-07:00</= xap:ModifyDate> 11.=A0=A0=A0=A0=A0=A0=A0=A0=A0<xap:CreateDate>2009-03-18T15:07:10-07:00</= xap:CreateDate> 12.=A0=A0=A0=A0=A0=A0</rdf:Description> 13.=A0=A0=A0=A0=A0=A0<rdf:Description rdf:about=3D"" 14.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0xmlns:dc=3D"http://purl.org/dc/ele= ments/1.1/"> 15.=A0=A0=A0=A0=A0=A0=A0=A0=A0<dc:format>application/pdf</dc:format> 16.=A0=A0=A0=A0=A0=A0=A0=A0=A0<dc:title> 17.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0<rdf:Alt> 18.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0<rdf:li xml:lang=3D"x-default">mhtml:file://O:\fema\shsp_2009\draft ijs\fy 2009 investment jus</rdf:li> 19.=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0</rdf:Alt> Share: Thanks and Regards, Inferno Security Researcher SecureThoughts.com
文章代碼(AID): #1B2kd_SB (Bugtraq)