I am performing a penetration test against a website that uses Flash.

I found this piece of code:

url = ExternalInterface.call("window.document.location.href.toString") as String;

How it can be exploited?

I tried to exploit it as XSS via submitting a payload after the #:


but nothing. Since I am not really good with Actionscript can anybody help?


The ExternalInferface.call() is designed for invoking javascript, so this function as written effectively gives you the opportunity to invoke arbitrary javascript in the execution context of the website, which is already a serious security hole.


How specifically to exploit it? There's a ton of web sites about javascript security holes, you just have to insert one and invoke it in the execution context of the web site.

  • Thanks , but the problem here is the exploitation payload – user1675137 Jul 27 '14 at 18:20
  • 1
    Any javascript exploit will work since you can execute arbitrary javascript. If you are just looking for a pentest result, you already showed the site is insecure. – Jeff-Inventor ChromeOS Jul 28 '14 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.