CWE-20
ISO27001-A.14.2.5
WASC-15
OWASP 2013-A5
OWASP 2017-A1

Insecure JSONP Endpoint

Severity:
Low
Summary

Invicti detected an insecure JSONP endpoint which is susceptible to attacks such as Rosetta Flash.

Impact

Rosetta Flash is an exploitation technique that allows an attacker to exploit servers with a vulnerable JSONP endpoint by causing Adobe Flash Player to believe that an attacker-specified Flash file originated on the vulnerable server.

Flash Player implements same-origin policy that allows to make requests (with cookies) and receive responses from the hosting domain. Then the attacker controlled Flash file can send the retrieved responses back to the attacker.

This is a cross-origin exploit with an impact similar to embedding an arbitrary Flash file in the vulnerable domain. The exploit uses an ActionScript payload compiled to an SWF file composed entirely of alphanumeric characters by crafting carefully with certain coding algorithms. The resulting alphanumeric-only SWF file is then used as the callback parameter of a JSONP call.

Remediation
  • Make endpoints return the HTTP header Content-Disposition with filename attribute, forcing a file download.Content-Disposition: attachment; filename=f.txt
  • To be also protected from content sniffing attacks, prepend the reflected callback with /**/.
Required Skills for Successful Exploitation
Actions To Take
Vulnerability Index

You can search and find all vulnerabilities

Select Vulnerability
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Featured resources

Blog

Strengthening enterprise application security: Invicti acquires Kondukto

Blog

Modern AppSec KPIs: Moving from scan counts to real risk reduction

Blog

Friends don’t let friends shift left: Shift smarter with DAST-first AppSec

Blog

Vibe talking: Dan Murphy on the promises, pitfalls, and insecurities of vibe coding

Blog

What lies ahead for CMS.

Blog

How to integrate CMS with other tools.

Blog

Improve user experience through CMS.

Blog

How CMS can benefit e-commerce.

Blog

Stay updated on CMS trends.

Blog

Tips for improving CMS performance.

Blog

Learn how to secure your CMS.

Blog

Explore the advantages of CMS.

Blog

A comprehensive guide to CMS.

Build your resistance to threats. And save hundreds of hours each month.