Closed
Bug 93091
Opened 25 years ago
Closed 25 years ago
Mozilla uses SSL cert from last https site when going to next https site
Categories
(Core Graveyard :: Security: UI, defect, P1)
Tracking
(Not tracked)
VERIFIED
INVALID
psm2.1
People
(Reporter: raines, Assigned: javi)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.19-6.2.8smp i686; en-US; rv:0.9.1)
Gecko/20010620
BuildID: Mozilla/5.0 (X11; U; Linux 2.2.19-6.2.8smp i686; en-US; rv:0.9.1)
Gecko/20010620
I start up a fresh mozilla and go to https://www.nmr.mgh.harvard.edu
I get prompted to accept the certificate and do so.
I then go to https://surfer.nmr.mgh.harvard.edu
I get a dialog saying "Domain Name Mismatch". I view the certificate
and see it is the one from www.nmr.mgh.harvard. But surfer.nmr.mgh.harvard.edu
definitely has its own certificate. You can visit them in the reverse order of
above and get the reverse problem (i.e. the certicate on www.nmr claims to be
from surfer.nmr).
Obviously netscape is caching certificates and there is some bug with this.
Older netscapes (4.x) have the same problem.
Both server's certificate are signed with the same CA certificate.
If I use certificates signed with different CA certs, there is no
problem. It looks like netscape is caching on the signer rather
than the certificate itself.
Also, when I view the certificate, Mozilla claims it cannot find
"Issued By" information when it is clearly in the certificate.
Internet Explorer on Win98 does not have this problem and correctly
gives the Issuer information in its certificate viewer.
Reproducible: Always
Steps to Reproduce:
1. visit https://www.nmr.mgh.harvard.edu
2. then visit https://surfer.nmr.mgh.harvard.edu
3. quit mozilla, and then visit them in reverse order
Actual Results: Mozilla claimed certificate of new site had the name of
the first site in it
Expected Results: Mozilla should prompt me to accept the correct certificate
of the new site
The certificate for each site is signed with this CA certificiate:
$ openssl x509 -text -in ca.crt
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 0 (0x0)
Signature Algorithm: md5WithRSAEncryption
Issuer: C=US, ST=Massachusetts, L=Charlestown, O=MGH NMR Center,
OU=Certificate Authority, CN=MGH NMR CA/Email=services@nmr.mgh.harvard.edu
Validity
Not Before: May 4 15:56:39 2001 GMT
Not After : May 5 15:56:39 2011 GMT
Subject: C=US, ST=Massachusetts, L=Charlestown, O=MGH NMR Center,
OU=Certificate Authority, CN=MGH NMR CA/Email=services@nmr.mgh.harvard.edu
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
00:a5:e3:1e:c9:b6:f7:e6:52:e5:76:3a:3b:38:72:
6b:cd:44:d6:02:88:11:a4:e9:3d:0b:dc:11:41:68:
04:64:f1:90:27:2e:72:47:38:4a:da:ce:36:85:93:
f6:72:37:45:f8:98:30:71:ee:9e:ea:02:75:1b:bf:
c8:d6:0c:08:57:7d:26:98:3c:c0:a9:c2:e6:a4:9a:
b0:cc:31:1b:9c:aa:bc:64:d7:c7:24:9a:8c:b5:4d:
57:72:b8:9a:28:95:31:e7:ed:8d:0c:5a:7d:11:a3:
13:92:17:a2:79:73:e6:52:7f:19:50:c1:b6:5e:81:
a7:37:be:57:2c:b2:87:3c:eb
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Alternative Name:
email:services@nmr.mgh.harvard.edu
X509v3 Basic Constraints:
CA:TRUE, pathlen:0
Netscape Comment:
mod_ssl generated custom CA certificate
Netscape Cert Type:
SSL CA
Signature Algorithm: md5WithRSAEncryption
76:15:69:28:7b:9f:4c:b5:7f:7a:38:85:5f:0a:e9:61:69:00:
b9:2a:09:df:dd:26:ab:68:d6:b2:2f:83:ef:51:f8:48:e5:b4:
39:24:fe:32:4d:6c:74:2c:3b:d1:7d:b5:dc:45:76:0d:d3:bf:
f1:5c:32:9d:b9:23:45:04:6f:c7:9e:97:c2:03:f7:c7:c5:39:
c8:be:79:d9:89:54:c0:d3:5b:70:fb:2c:21:0e:9f:13:f3:68:
68:b1:b0:14:bc:e8:71:b4:0d:72:df:b6:fd:9e:36:2f:9c:c8:
ad:a8:d1:7d:f8:28:bb:2f:9f:60:45:cb:87:95:ff:6e:8a:1f:
bd:4d
-----BEGIN CERTIFICATE-----
MII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W0OST+Mk1sdCw70X213EV2DdO/8VwynbkjRQRv
x56XwgP3x8U5yL552YlUwNNbcPssIQ6fE/NoaLGwFLzocbQNct+2/Z42L5zIrajR
ffgouy+fYEXLh5X/boofvU0=
-----END CERTIFICATE-----
The certicate for surfer.nmr is:
$ openssl x509 -text -in server.crt
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: md5WithRSAEncryption
Issuer: C=US, ST=Massachusetts, L=Charlestown, O=MGH NMR Center,
OU=Certificate Authority, CN=MGH NMR CA/Email=services@nmr.mgh.harvard.edu
Validity
Not Before: Aug 1 14:35:40 2001 GMT
Not After : Jul 30 14:35:40 2011 GMT
Subject: C=US, ST=Massachusetts, L=Charlestown, O=MGH NMR Center,
OU=Computing, CN=surfer.nmr.mgh.harvard.edu/Email=systems@nmr.mgh.harvard.edu
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
00:f3:04:9a:cf:eb:d2:d4:5e:03:73:c1:dc:7a:c4:
0d:d3:84:f3:41:cb:6c:21:e5:b0:ea:02:dd:f6:0a:
7c:dd:32:a0:36:66:1d:8f:8e:0d:77:02:d2:fc:a9:
d6:ea:8f:40:ec:e7:44:a1:e0:e4:5e:b0:1c:4f:1d:
9f:5b:54:77:be:b4:b0:58:95:bd:5d:ef:7b:39:0f:
ef:2b:de:92:81:9f:e3:19:1d:7d:70:60:44:b3:3d:
30:d1:6d:ec:d5:84:da:a0:3f:7d:a2:c6:df:0d:81:
37:9f:f4:47:f4:d9:fd:9c:f5:d5:53:4d:99:54:3d:
af:cf:66:25:eb:fb:03:c6:71
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Alternative Name:
email:systems@nmr.mgh.harvard.edu
Netscape Comment:
mod_ssl generated custom server certificate
Netscape Cert Type:
SSL Server
Signature Algorithm: md5WithRSAEncryption
1d:be:0d:1b:cd:ac:2e:ee:4b:78:36:ef:1e:48:31:85:f6:e3:
5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0w0W3s1YTaoD99osbfDYE3n/RH9Nn9
nPXVU02ZVD2vz2Yl6/sDxnECAwEAAaN5MHcwJgYDVR0RBB8wHYEbc3lzdGVtc0Bu
bXIubWdoLmhhcnZhcmQuZWR1MDoGCWCGSAGG+EIBDQQtFittb2Rfc3NsIGdlbmVy
YXRlZCBjdXN0b20gc2VydmVyIGNlcnRpZmljYXRlMBEGCWCGSAGG+EIBAQQEAwIG
QDANBgkqhkiG9w0BAQQFAAOBgQAdvg0bzawu7kt4Nu8eSDGF9uNezUOnUtZcFWIC
O5mfGRa5Kwn4Q9/z94NDEirNA7JlCWVU0/buP///SUZQ9jMH2UKHZ10gl5jzpGcD
HCF8Sbk8isEz031IDuxorcV1BnUwNvYlAdY/d8xfA9HEXiqecSCnPsJL82jaKH2c
4TPOVA==
-----END CERTIFICATE-----
The certificate for www.nmr is:
openssl x509 -text -in server.crt
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: md5WithRSAEncryption
Issuer: C=US, ST=Massachusetts, L=Charlestown, O=MGH NMR Center,
OU=Certificate Authority, CN=MGH NMR CA/Email=services@nmr.mgh.harvard.edu
Validity
Not Before: Aug 1 13:13:46 2001 GMT
Not After : Jul 30 13:13:46 2011 GMT
Subject: C=US, ST=Massachusetts, L=Charlestown, O=MGH NMR Center,
OU=Computing, CN=www.nmr.mgh.harvard.edu/Email=systems@nmr.mgh.harvard.edu
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
00:a6:16:16:a0:21:fe:95:1a:20:d5:33:49:42:59:
a2:35:e1:59:9d:16:91:04:c4:2b:e5:1c:b6:d3:43:
8e:3c:1c:1d:7b:fe:52:b4:f1:5a:c4:b3:b6:e3:7a:
0f:8d:65:14:d2:b1:4b:df:f3:6d:d9:97:49:81:50:
27:fd:2f:1e:41:de:f0:67:01:d7:c1:a4:05:61:d7:
8a:bd:56:be:84:c6:87:d3:cd:c7:07:e2:a9:f1:15:
05:d6:2f:91:4e:26:0b:4e:e8:8e:e2:47:77:ed:26:
bb:37:06:ca:e2:88:ba:6c:17:8a:a8:c3:91:8b:7e:
b4:70:fd:3f:21:fd:bc:af:31
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Alternative Name:
email:systems@nmr.mgh.harvard.edu
Netscape Comment:
mod_ssl generated custom server certificate
Netscape Cert Type:
SSL Server
Signature Algorithm: md5WithRSAEncryption
70:c4:93:7c:fb:17:70:c1:cc:cd:23:e1:ce:28:bb:62:c6:f5:
75:21:00:45:9f:b9:24:8d:75:c4:3a:7e:df:40:a2:ab:60:78:
b8:b5:40:d4:c4:71:79:41:04:5b:b9:66:9d:50:cc:7e:2b:ae:
7a:f9:45:6a:35:76:5f:c5:78:5b:62:20:9f:9a:eb:e2:31:17:
40:e8:85:76:47:8f:00:7b:22:0f:16:cc:80:3a:6c:e8:69:11:
27:04:a4:fc:e0:ff:2f:ab:55:24:e1:3c:13:ea:82:54:b3:6a:
74:f1:49:73:54:f8:e0:dd:a9:25:53:c9:8b:2b:0c:96:d5:d0:
33:a1
-----BEGIN CERTIFICATE-----
MIIDXTCCAsagAwIBAgIBAjANBgkqhkiG9w0BAQQFADCBtjELMAkGA1UEBhMCVVMx
FjAUBgNVBAgTDU1hc3NhY2h1c2V0dHMxFDASBgNVBAcTC0NoYXJsZXN0b3duMRcw
FQYDVQQKEw5NR0ggTk1SIENlbnRlcjEeMBwGA1UECxMVQ2VydGlmaWNhdGUgQXV0
aG9yaXR5MRMwEQYDVQQDEwpNR0ggTk1SIENBMSswKQYJKoZIhvcNAQkBFhxzZXJ2
aWNlc0BubXIubWdoLmhhcnZhcmQuZWR1MB4XDTAxMDgwMTEzMTM0NloXDTExMDcz
MDEzMTM0NlowgbYxCzAJBgNVBAYTAlVTMRYwFAYDVQQIEw1NYXNzYWNodXNldHRz
MRQwEgYDVQQHEwtDaGFybGVzdG93bjEXMBUGA1UEChMOTUdIIE5NUiBDZW50ZXIx
EjAQBgNVBAsTCUNvbXB1dGluZzEgMB4GA1UEAxMXd3d3Lm5tci5tZ2guaGFydmFy
ZC5lZHUxKjAoBgkqhkiG9w0BCQEWG3N5c3RlbXNAbm1yLm1naC5oYXJ2YXJkLmVk
dTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAphYWoCH+lRog1TNJQlmiNeFZ
nRaRBMQr5Ry200OOPBwde/5StPFaxLO243oPjWUU0rFL3/Nt2ZdJgVAn/S8eQd7w
ZwHXwaQFYdeKvVa+hMaH083HB+Kp8RUF1i+RTiYLTuiO4kd37Sa7NwbK4oi6bBeK
qMORi360cP0/If28rzECAwEAAaN5MHcwJgYDVR0RBB8wHYEbc3lzdGVtc0BubXIu
bWdoLmhhcnZhcmQuZWR1MDoGCWCGSAGG+EIBDQQtFittb2Rfc3NsIGdlbmVyYXRl
ZCBjdXN0b20gc2VydmVyIGNlcnRpZmljYXRlMBEGCWCGSAGG+EIBAQQEAwIGQDAN
BgkqhkiG9w0BAQQFAAOBgQBwxJN8+xdwwczNI+HOKLtixvV1IQBFn7kkjXXEOn7f
QKKrYHi4tUDUxHF5QQRbuWadUMx+K656+UVqNXZfxXhbYiCfmuviMRdA6IV2R48A
eyIPFsyAOmzoaREnBKT84P8vq1Uk4TwT6oJUs2p08UlzVPjg3aklU8mLKwyW1dAz
oQ==
-----END CERTIFICATE-----
Comment 2•25 years ago
|
||
PSM
Assignee: ddrinan → ssaux
Component: Security: Crypto → Client Library
Product: Browser → PSM
Version: other → 2.1
Comment 3•25 years ago
|
||
verified on Linux trunk commercial build ID 2001080106.
P1
t->2.1 nsenterprise.
->javi
Comment 4•25 years ago
|
||
Same behavior is present in communicator.
Comment 5•25 years ago
|
||
Something is wrong with the certificates:
Both are signed by the same issuer, yet they have the same serial number. This
contravenes the X509 specs.
Marking INVALID.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Comment 7•25 years ago
|
||
Verified. The site seems to have gotten new certs on 8/1, and the problem is no
longer reproducible.
Status: RESOLVED → VERIFIED
Comment 8•23 years ago
|
||
*** Bug 201429 has been marked as a duplicate of this bug. ***
Updated•10 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•