Welcome Guest!

If you do not have an account yet on The Web Squeeze forums, please Register! It’s FREE and there are many benefits:

  • Receive Fast Advice
  • Learn Programming Languages
  • Get Professional Website Reviews
  • Quick Troubleshooting Assistance

> Hide Address In The Address Bar

This is a discussion on Hide Address In The Address Bar, within the Javascript section. This forum and the thread "Hide Address In The Address Bar" are both part of the Programming Your Website category.

 
Reply to this topicStart new topic
> Hide Address In The Address Bar
Monie
post Jun 7 2008, 08:47 PM
Post #1


Squeeze Machine
*****

Group: Members
Posts: 698
Joined: 13-February 08
From: Borneo
Member No.: 8



Here is the situation...

My company are using Window Server 2003 and of course there is a Firewall.
In that Firewall there is a port that will be pointing to another server.
The main server has a web based interface for people to select which application they want to lunch!

The question is, in the web based interface the address will be look like this:
http://SERVERNAME:8989/esales/login.jsp
You see that displaying the port number is not a good way security wise biggrin.gif
How am I suppose to hide this from being display to the user?

Thank you.


--------------------

Go to the top of the page
 
+Quote Post
Jacob
post Jun 8 2008, 03:18 PM
Post #2


Co-Founder
******

Group: Co-Founders
Posts: 2,410
Joined: 13-February 08
From: On the forum!
Member No.: 1



I guess you could add an entry into the hosts file on the computer and have the port removed.


--------------------
Thanks,
Jacob Haug
Go to the top of the page
 
+Quote Post
holger
post Jun 8 2008, 03:31 PM
Post #3


Fresh Squeezed
**

Group: Members
Posts: 30
Joined: 6-March 08
From: Birmingham
Member No.: 196



QUOTE (Monie @ Jun 8 2008, 02:47 AM) *
You see that displaying the port number is not a good way security wise biggrin.gif

I don't quite see, why showing the port number should be a security issue. Every network connection has to access some port. And that port must be known on the client side. By default HTTP uses port 80. If you want to change that default behaviour you need to specify it somewhere on the client computer.

The alternative is to configure your server to map a subdomain to a specific port number. So your URL would look like this:
http://esales.SERVERNAME/esales/login.jsp
As far as i know you can use mod_rewrite when using apache web server to achieve this.

That would make the URL look nicer, but it wouldn't make any difference for the security.


--------------------
Viventic Web Design and Application Development
Go to the top of the page
 
+Quote Post
Monie
post Jun 8 2008, 08:13 PM
Post #4


Squeeze Machine
*****

Group: Members
Posts: 698
Joined: 13-February 08
From: Borneo
Member No.: 8



Well, Holger suggestion will be ok if the user access the file from local but the problem is this system will be access from outside as well.
So thats why the firewall will be the link between outside world and the inside system biggrin.gif

If you access the link from local, the link will be like this: http://SERVERNAME/esales/login.jsp
If it is from outside, the link will be like this: http://SERVERNAME:9898/esales/login.jsp
So as you can see, the firewall will route the port 9898 to the appropriate server (IP Address) inside the organization.

Any suggestion guys?


--------------------

Go to the top of the page
 
+Quote Post
Jacob
post Jun 8 2008, 08:18 PM
Post #5


Co-Founder
******

Group: Co-Founders
Posts: 2,410
Joined: 13-February 08
From: On the forum!
Member No.: 1



Oh, I now understand how this could be a security hole. If it were Linux I could help you configure your http.conf file to fix that issue. However, since you are Windows it's up to you. I never worked with Windows Servers just the OS.


--------------------
Thanks,
Jacob Haug
Go to the top of the page
 
+Quote Post
Monie
post Jun 8 2008, 09:03 PM
Post #6


Squeeze Machine
*****

Group: Members
Posts: 698
Joined: 13-February 08
From: Borneo
Member No.: 8



Oh please Jacob...! Please help me please! biggrin.gif LOL


--------------------

Go to the top of the page
 
+Quote Post
holger
post Jun 9 2008, 05:25 AM
Post #7


Fresh Squeezed
**

Group: Members
Posts: 30
Joined: 6-March 08
From: Birmingham
Member No.: 196



QUOTE (Monie @ Jun 9 2008, 02:13 AM) *
So as you can see, the firewall will route the port 9898 to the appropriate server (IP Address) inside the organization.


This seems to me a configuration problem of the firewall and not of the server itself.

If I understand this correctly, the firewall receives requests on port 9898 from the outside. Requests on that port are then mapped to the other server. I understand that internally that server uses the standard port 80 to receive requests (that's why you can use http://SERVERNAME/esales/login.jsp inside the organization).

For requests coming from the outside, the firewall has to somehow know where to map the request. In your case this is done via the port number. It could probably be done using a subdomain as well.

I still don't see the real security issue. But I am not a security expert. unknw.gif
I access a number of services through non-standard port numbers. Could someone please explain.


--------------------
Viventic Web Design and Application Development
Go to the top of the page
 
+Quote Post
Monie
post Jun 9 2008, 05:55 AM
Post #8


Squeeze Machine
*****

Group: Members
Posts: 698
Joined: 13-February 08
From: Borneo
Member No.: 8



Ok, anyone that want to access the system in the server from outside will be using internet.
My company uses a service, a third party service which will route the address to our very own server.
The address given from the service will be pointing to our firewall using port 80, so in our firewall any incoming port (port 80), it will be redirected to a another server (IIS Server) which contains the system main interface (html page) that have the link to the "System".

Ok... in that html page, there is a link something like this: http://SERVICE_NAME:9898/esales/login.jsp to access the "System" login page.
(which can be access locally by just typing: http://SERVERNAME:9898/esales/login.jsp)

That link will go to the third party service and link back to our firewall with that particular port number "9898" which will rerouted by the firewall to the "System" login page.
The problem is that the link itself contain the port number that will be viewable by the user if they hover over the link.
That is what I am worried about. Exposing the port number to the user.

QUOTE (holger @ Jun 9 2008, 06:25 PM) *
It could probably be done using a subdomain as well.


How to do that with subdomain?
Can you explain a bit more?
Cheers...


--------------------

Go to the top of the page
 
+Quote Post
holger
post Jun 9 2008, 09:15 AM
Post #9


Fresh Squeezed
**

Group: Members
Posts: 30
Joined: 6-March 08
From: Birmingham
Member No.: 196



QUOTE (Monie @ Jun 9 2008, 11:55 AM) *
The problem is that the link itself contain the port number that will be viewable by the user if they hover over the link.
That is what I am worried about. Exposing the port number to the user.


OK. I understand that the port number will be exposed to the user. But where is the security issue in that? The client must know the port number to send the request to in any case. The only difference is that it's not the default port number 80. As long as you don't have an insecure service listening to that port

I am using a hosting service, where the different control panels are all mapped to different port numbers. They don't have any problem with exposing the port numbers to the user.

QUOTE (Monie @ Jun 9 2008, 11:55 AM) *
How to do that with subdomain?
Can you explain a bit more?


Well that depends. You might be able to configure subdomains with your third party service provider. Or you might be able to configure it on your firewall. I'm no expert on this and without looking at the exact configuration I wouldn't be able to tell.


--------------------
Viventic Web Design and Application Development
Go to the top of the page
 
+Quote Post
Monie
post Jun 9 2008, 10:17 PM
Post #10


Squeeze Machine
*****

Group: Members
Posts: 698
Joined: 13-February 08
From: Borneo
Member No.: 8



QUOTE (Jacob @ Jun 9 2008, 09:18 AM) *
Oh, I now understand how this could be a security hole. If it were Linux I could help you configure your http.conf file to fix that issue. However, since you are Windows it's up to you. I never worked with Windows Servers just the OS.


I ask help on this matter just because my boss said it is a security issue so as what Jacob said earlier biggrin.gif
Jacob, can you explain this to me to? I mean the security part biggrin.gif

Cheers...


--------------------

Go to the top of the page
 
+Quote Post
christopher
post Jun 10 2008, 07:55 PM
Post #11


Fresh Squeezed
**

Group: Members
Posts: 27
Joined: 15-February 08
From: Ottawa, Canada
Member No.: 154



I agree with holger, I don't consider this a security issue.

You're running a public HTTP service on a non-standard port. How is it any more dangerous for people to know that your HTTP service is on 8989 than it is for them to know that your HTTP is on standard port 80?
Go to the top of the page
 
+Quote Post
Monie
post Jun 10 2008, 08:27 PM
Post #12


Squeeze Machine
*****

Group: Members
Posts: 698
Joined: 13-February 08
From: Borneo
Member No.: 8



Well my boss insist me to "hide" them biggrin.gif


--------------------

Go to the top of the page
 
+Quote Post
If you found The Web Squeeze to be helpful, please donate so we can keep this site FREE, FRESH, and fortified with Web Design & Development info!
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new   33 Monie 1,598 6th March 2008 - 11:14 PM
Last post by: Monie
No New Posts   3 acrikey 129 25th April 2008 - 01:17 AM
Last post by: c010depunkk
No new   21 Vivara 294 29th October 2008 - 08:28 AM
Last post by: japh