Problem on Mozilla FireFox

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
kmp0909
Posts: 3
Joined: Sun Dec 02, 2007 10:40 pm

Problem on Mozilla FireFox

Post by kmp0909 » Sun Dec 02, 2007 10:52 pm

Browser Version: 2.0.0.11
Vault Version: 4.0.5
.net Version: 2.0
O/S Version: WinXP Pro

I am getting prompted to save or open the VaultService.asmx file.

Unfortunately, I am not that familiar with Mozilla and don't know what I have configured incorrectly.

Anyone have any idea how to make it run the asmx file instead of ask me to downlaod it?

Thanks.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Dec 03, 2007 8:27 am

When you get this prompt, are you trying to access the .asmx page? If not, what steps reproduce this error?

Does this happen with Internet Explorer?
Linda Bauer
SourceGear
Technical Support Manager

kmp0909
Posts: 3
Joined: Sun Dec 02, 2007 10:40 pm

Post by kmp0909 » Mon Dec 03, 2007 6:26 pm

After going to http://<machine>/VaultService and selecting the http://CR1/VaultService/VaultService.asmx link I get the below code displayed in the IE browser. In FireFox I am prompted to download the file.

<%@ WebService Language="c#" Codebehind="VaultService.asmx.cs" Class="VaultService.VaultService" %>

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Tue Dec 04, 2007 9:29 am

Sounds like IIS is not configured for an ASP.NET application on your Win XP Pro box.

Try this:
a) Open a command prompt
b) Goto %windir%\Microsoft.NET\Framework\v2.0.xxxxx where xxxxx is the minor build of .NET.
c) Run "aspnet_regiis -i"
d) Assuming it installs correctly browse to the .asmx page. Do you now get a VaultService service description page?
Jeff Clausius
SourceGear

kmp0909
Posts: 3
Joined: Sun Dec 02, 2007 10:40 pm

Post by kmp0909 » Tue Dec 04, 2007 6:05 pm

Blah......works just fine now.

Been bitten by that twice now. First time I was trying to create an ASP.net application and was getting entirely different messaging.

I thank you.

Xavier
Posts: 230
Joined: Tue Mar 01, 2005 5:06 am

Post by Xavier » Sat Mar 01, 2008 4:11 am

Hello,

it worked for me also. However it's incredible the number of changes (mainly security) I've had to make to have it work.
I'm a really concerned by security as the web will be exposed to internet.
Is there a documentation that explains the right restriction to set in place to have this work without risk (or at least as possible).

For examples the account ASPNET did not exist; I had to create it, set rights on folders... But it doesn't have any password !

Hope you have some docs (or time) on this to explain a minimal installation to have fortress work. We used sourcegear for a long time and the approach was very secure according to me and really simple to install !

I think you should also add a link to the Vault documentation in the fortress page; it would help for new users.

Xavier

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Sat Mar 01, 2008 3:18 pm

Xavier wrote:For examples the account ASPNET did not exist; I had to create it, set rights on folders... But it doesn't have any password !
The ASPNET account only exists on systems with IIS 5.0. For systems with IIS 6.0, ASP.NET has an entirely different security model using the 'NT AUTHORITY\NETWORK SERVICE' account.

If you're using IIS 5.0 (Win XP or Windows 2000 Server), then something is definitely wrong with your setup as the ASPNET account is created when you install/configure .NET Framework AFTER installing and setting up IIS. I believe the order of things is important as the .NET Framework is IIS aware, but the IIS installation is not necessarily aware of .NET Framework
Xavier wrote:Hope you have some docs (or time) on this to explain a minimal installation to have fortress work. We used sourcegear for a long time and the approach was very secure according to me and really simple to install !
Here are some articles which explain what principles lies behind Vault/Fortress -

An Introductory Guide to Building and Deploying More Secure Sites with ASP.NET and IIS - http://msdn2.microsoft.com/en-us/magazine/cc301387.aspx

An Introductory Guide to Building and Deploying More Secure Sites with ASP.NET and IIS, Part - http://msdn2.microsoft.com/en-us/magazine/cc301390.aspx

Authentication in ASP.NET: .NET Security Guidance - http://msdn2.microsoft.com/en-us/library/ms978378.aspx

Security Guidelines: ASP.NET 2.0 - http://msdn2.microsoft.com/en-us/library/ms998258.aspx
Jeff Clausius
SourceGear

Xavier
Posts: 230
Joined: Tue Mar 01, 2005 5:06 am

Post by Xavier » Sat May 10, 2008 3:20 pm

I've had a glance at those pages; I think this is mainly for those who design the pages (you ;-) ).

I'm far to be a web security expert, I then have what certainly are obvious questions:

- is http://server/VaultService OK, or https mandatory (mainly for password reasons, my understanding is that a hacker could easily read the user/password and get/delete the sources). If https is required, how can it be setup.

- is there anything else that should be done to have our sever secure ? Or (as I hope) are all the default hacker safe (as far as it can be).

Thanks

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Mon May 12, 2008 8:49 am

For functionality found in the non-web app based clients, those go through our own protocol, so although the data is sent in the clear, the client never sends passwords in clear text.


For the web-based access of Vault, you'll want to probably enforce SSL based connections. Since this might be different on each version of IIS, please consult the correct manual for your version of IIS in setting up an SSL Certificate for encryption. Also note, you don't necessarily have to "buy" a cert for this. You should be able to use a Certificate Server (Microsoft or Open SSL based) to create self-made certificates to be used within IIS.

As far as default installations, .NET framework creates accounts and grants permissions with a minimized risk. The links I posted above should have information about how the Framework works. This behavior would also cover behavior found in both Vault and Fortress.

HTH
Jeff Clausius
SourceGear

Mike Dimmick
Posts: 28
Joined: Tue Feb 17, 2004 7:42 am
Location: UK
Contact:

Post by Mike Dimmick » Mon May 12, 2008 11:03 am

We keep our Vault server behind our firewall and use a VPN for remote access. In the past, before moving to a different server, it was also accessible via HTTPS but that was almost an accident; it shared a server with Exchange ActiveSync.

HTTPS only protects you from disclosing passwords and source code to network packet sniffing. It doesn't protect against password guessing attacks or any injection vulnerabilities or other attacks against Vault itself. If you're worried about security, don't expose Vault to the public internet.

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Mon May 12, 2008 12:38 pm

Mike:

These are all good points! Note, that normal brute force password based attacks would be somewhat limited due to built in authentication mechanisms.

Again, placing the Vault/Fortress server inside a VPN is another nice configuration. Mike, good post. Thanks.
Jeff Clausius
SourceGear

Xavier
Posts: 230
Joined: Tue Mar 01, 2005 5:06 am

Post by Xavier » Tue May 13, 2008 9:29 am

Thank for these advises. I know those questions are not really of your concern, though I wouldn't ask if this wasn't to use your product...

- We would like to give the opportunity to our customers to enter and follow their bugs through the WEB only licence. I suppose we can do that only through direct WEB access ? Unless we give them access to our network through a VPN.

- Why would a VPN be more secure ? Or is it really safer ?

- I've found some link on Microsoft to install a Certificate but not on how to obtain a free certificate. Do you have a link for that ?

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Tue May 13, 2008 11:30 am

Xavier wrote:- We would like to give the opportunity to our customers to enter and follow their bugs through the WEB only licence. I suppose we can do that only through direct WEB access ? Unless we give them access to our network through a VPN.
As long as the end-users only have access to the Vault/Fortress server that would be OK. Inviting non-trusted users inside a VPN where other trusted resources may exist is ill advised. The other option would be a public IP address on the Vault/Fortress Server.
Xavier wrote:- Why would a VPN be more secure ? Or is it really safer ?
I don't want to put words into Mike's post, but if I were to guess, he would say the less services you expose to a public interface, the better. Removing IIS from public exposure is just one less piece you need to worry about.
Xavier wrote:- I've found some link on Microsoft to install a Certificate but not on how to obtain a free certificate. Do you have a link for that ?
http://technet.microsoft.com/en-us/libr ... .aspx#EDAA
http://support.microsoft.com/kb/218445
Jeff Clausius
SourceGear

Post Reply