Search
-::DESCRIPTION
-::DATE
Showing posts with label Paul OS. Show all posts
Showing posts with label Paul OS. Show all posts
SSRF/XSPA bug on Facebook | Writeup by Paul OS
Labels:
Facebook Bugs,
Paul OS
Hello friends, Today we gonna post POC of SSRF/XSPA Vulnerablity on Facebook This bug has been submitted to Pentesting Lab by Paul Os.
According to him,
An application is vulnerable to Cross Site Port Attacks (SSRF/XSPA) if the application processes user supplied URLs and does not verify/sanitize the backend response received from remote servers before sending it back to the client.
An attacker can send crafted queries to a vulnerable web application to proxy attacks to external Internet facing servers, intranet devices and the web server itself using the advertised functionality of the vulnerable web application. The responses, in certain cases, can be studied to identify service availability (port status, banners etc.) and even fetch data from remote services in unconventional ways.
XSPA allows attackers to target the server infrastructure, mostly the intranet of the web server, the web server itself and any public Internet facing server as well. This Vulnerability can be used for:
1) Port Scanning remote Internet facing servers, intranet devices and the local web server itself. Banner grabbing is also possible in some cases.
2) Exploiting vulnerable programs running on the Intranet or on the local web server.
when sending a message to a user in the chat section it is possible to add websites... and Facebook will go check the link to get favicon and title.
If we for example give it, http://target.com:80/ it will print out the contents of the site since http/80 runs there. but if we gave it closed ports like http:// target.com:31337/ , it will suffer to get output thus, reaveling if port is open or closed.
Now the issue has been fixed and Facebook have put mitigation strategies for possible abuse to scan internal servers or so... :-)
According to him,
An application is vulnerable to Cross Site Port Attacks (SSRF/XSPA) if the application processes user supplied URLs and does not verify/sanitize the backend response received from remote servers before sending it back to the client.
An attacker can send crafted queries to a vulnerable web application to proxy attacks to external Internet facing servers, intranet devices and the web server itself using the advertised functionality of the vulnerable web application. The responses, in certain cases, can be studied to identify service availability (port status, banners etc.) and even fetch data from remote services in unconventional ways.
XSPA allows attackers to target the server infrastructure, mostly the intranet of the web server, the web server itself and any public Internet facing server as well. This Vulnerability can be used for:
1) Port Scanning remote Internet facing servers, intranet devices and the local web server itself. Banner grabbing is also possible in some cases.
2) Exploiting vulnerable programs running on the Intranet or on the local web server.
when sending a message to a user in the chat section it is possible to add websites... and Facebook will go check the link to get favicon and title.
If we for example give it, http://target.com:80/ it will print out the contents of the site since http/80 runs there. but if we gave it closed ports like http:// target.com:31337/ , it will suffer to get output thus, reaveling if port is open or closed.
Now the issue has been fixed and Facebook have put mitigation strategies for possible abuse to scan internal servers or so... :-)
Posted by Pentesting-Lab at 22:58 0 comments
Facebook - Linkshim Evasion and URL Redirection : Write Up by Paul OS
Labels:
Facebook Bugs,
Paul OS,
POC
One of the Good Facebook Bug Hunter, Paul OS, has submitted URL Redirection Bug of Facebook to Pentesting-Lab.
Lets Check out the write up by his own words.
Web applications frequently redirect and forward users to other pages and websites, and use untrusted data to determine the destination pages. Without proper validation, attackers can redirect victims to phishing or malware sites, or use forwards to access unauthorized pages.
Recently I was browsing through Facebook mobile (m.facebook.com) and I found a notification that a friend tagged me into a post… well the post wasn’t that interesting so I decided to hide it. When clicking on hide I notice the URL parameter contained a parameter called ‘continue’ followed by stories.php
https://m.facebook.com/feed_menu/?story_fbid=808015282566492&id=100000740832129&confirm=h&continue=stories.php&perm&no_fw=1&_rdr
So I figured that can lead to a URL redirection if I changed the continue parameter to something like http://evilzone.org but the Linkshim was rechecking and returning it back to m.facebook.com/http://evilzone.org but the redirection wasn’t successful but then I noticed that parameter can be tricked using path transversal tricks like ../
When I gave the url parameter something like
&continue=../http://evilzone.org
I was able to bypass the Linkshim and get a successful redirection to Evilzone.org (which by the way is a blocked link by Facebook).
So the full parameter for redirection including the Linkshim evasion was
https://m.facebook.com/feed_menu/?story_fbid=808015282566492&id=100000740832129&confirm=h&continue=../http://evilzone.org&perm&no_fw=1&_rdr
And none of the other parameters needs to be accurate;
the story_fbid and id parameters can be any number so we don’t need victim’s special parameters to execute redirection.
Now the issue have been fixed and Facebook has promised to reward me with 1000$USD for this bug. I would like to thank the Facebook Security Team so much for their cool support and generous amount.
Posted by Pentesting-Lab at 07:33 0 comments
Paul OS - Introduction
Labels:
Introduction,
Paul OS
Paul OS is an Independent Security Researcher. He has been affiliated with Pentesting-Lab to share his Bug Findings and Hall Of Fame.
He has got so many Hall of Fame since now but according to him, Listing on Facebook White Hat page is Fabulous remark from his side. We will reveal his Findings with proper POC soon on this site..
He has got so many Hall of Fame since now but according to him, Listing on Facebook White Hat page is Fabulous remark from his side. We will reveal his Findings with proper POC soon on this site..
Posted by Pentesting Lab at 22:17 0 comments
Subscribe to:
Posts (Atom)
