IP Spoofing | Community
Skip to main content
Tom_Baker
Level 2
January 13, 2020
Question

IP Spoofing

  • January 13, 2020
  • 3 replies
  • 7300 views

One of our Marketo landing pages, calls an external API to pass some information. For this, the external API client ID and secret are placed on the landing page.

In order to secure this setup, we are planning to use IP restrictions to only allow calls from the landing page to the external server. I just wanted to confirm if we should be concerned regarding IP Spoofing? Also, any other security risks involved with this approach?

Also, will there be extra concerns to do with shared Marketo IP?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

SanfordWhiteman
Level 10
January 13, 2020

One of our Marketo landing pages, calls an external API to pass some information. For this, the external API client ID and secret are placed on the landing page.

Um, okay, no longer an API secret though as obviously anyone can read it from the webpage (the whole idea of a secret is it is not world-readable).

It's operating more like an API key in this scenario.

In order to secure this setup, we are planning to use IP restrictions to only allow calls from the landing page to the external server.

The IP address seen by the remote API will be the public IP address of the person viewing the page. How are you predicting this IP address? Are you locking this down so it can only be used from a particular external IP or subnet?

I just wanted to confirm if we should be concerned regarding IP Spoofing?

In practice, no, you don't need to worry about spoofing a (TCP) IP source address across the net, because that'll be blocked by transit routers.

Also, will there be extra concerns to do with shared Marketo IP?

The IP address of your Marketo instance will not be the source IP address of connections made by end users, so the question doesn't really make sense.

Tom_Baker
Tom_BakerAuthor
Level 2
January 13, 2020

Your right. Not an API secret anymore.

Regarding, 'The IP address of your Marketo instance will not be the source IP address of connections made by end users, so the question doesn't really make sense'

Since the landing page sits on Marketo, will the source IP of the API calls made via the landing page not be from the Marketo IP? If not, is there anyother way for the API server to authenticate?

SanfordWhiteman
Level 10
January 13, 2020
Regarding, 'The IP address of your Marketo instance will not be the source IP address of connections made by end users, so the question doesn't really make sense'

 

Since the landing page sits on Marketo, will the source IP of the API calls made via the landing page not be from the Marketo IP?

Of course not, the source IP is the person's external IP.

(Just like the source IP of your visits to this page, on Marketo Nation, isn't the IP address of the Jive Community server. It's your home/work IP.)

Rajesh_Talele3
Level 2
January 13, 2020

Hi Alex,

Do you mean to use 'landing page domain' based restriction instead of the IP address of the visitor?

Thus the service would allow a web page to use the service only if the web page is on your website(s). If someone else copies the 'access credentials' and create web page on their domain, the service should reject the request. The unauthorized person would not be able to host their landing page on your domain(s). 

Hope this helps...

SanfordWhiteman
Level 10
January 13, 2020

What you're describing isn't secure at all. The referrer can be trivially forged by an absolute newbie.

So I hope that isn't what Alex means...

Rajesh_Talele3
Level 2
January 13, 2020

I agree. I was asking if that was the service provider meant instead of IP address..

Do you think there is a way to use CSRF token mechanism if the service provides along with custom javascript on Marketo landing page in such instance?

Tony_Mayse
Level 2
January 13, 2020

If @Sanford Whiteman‌ hasn't made it clear, this is a bad idea entirely.

The discussion has been very abstract. Right now you're getting very specific answers to your questions, but are left with many choices to make. To get more useful ideas, it might be helpful to explain your overall goal in simple terms so that we can help propose a workable solution.

Tom_Baker
Tom_BakerAuthor
Level 2
January 13, 2020

Thanks Tony.

I'll start a new question with a better question and clear suggestions.