Same-Site Scripting: The Lesser-Known Vulnerability

February 9, 2016 | Views: 10372

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

Hi Readers,

It’s quite possible that a sub-domain has a “loop back” address, i.e. 127.0.0.1. Many security researchers and developers may not be aware of this lesser-known vulnerability.

Imagine a scenario where a user has to access “subdomain.example.com”. If the sub domain is configured with address 127.0.0.1 and, if the user is already running a service on their localhost (Eg. Xamp/Wamp server running), he/she will obviously be redirected to the localhost services. He/she will never be able to visit “subdomain.example.com” unless the user has stopped the services on the localhost.

 

Run a Simple Test

Simply send a ping request to the sub domain to find the IP address:

ping subdomain.example.com

Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

 

Many organization have the DNS misconfigured with the address 127.0.0.1 (but, we won’t disclose all those websites). We will share that the famous Bug Bounty Program, HackerOne, had this issue. They were notified by a security researcher and fixed the vulnerability.

 

Let’s Fix the Issue

1. Change the IP address from 127.0.0.1 to a random address.

2. Simply remove the sub-domain entry if it’s not needed.

 

Regards,

Vinoth kumar

Security Researcher

Share with Friends
FacebookTwitterLinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterLinkedInEmail
Ready to share your knowledge and expertise?
12 Comments
  1. thank you for sharing

  2. Great write up. I agree that this is the best description I have found yet. I was using dnsmap to scan some sites and came a cross this vulnerability. I had never heard of it mentioned anywhere else. (Promptly sending emails out to close these holes).

Page 3 of 3«123
Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge

 

Cybrary|0P3N

Is Linux Worth Learning in 2020?
Views: 334 / December 14, 2019
How do I Get MTA Certified?
Views: 926 / December 12, 2019
How much does your PAM software really cost?
Views: 1379 / December 10, 2019
How Do I Get into Android Development?
Views: 1757 / December 8, 2019

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel