All Foscam networked cameras use the same SSL private key that is hard coded into the downloadable firmware. This is easily extracted using a utility like binwalk and would allow an attacker to MITM any Foscam device.
One devices SSL keys are valid for any other device. See the below certificates CNs: *.myfoscam.org
Below are the ssl certificates of two foscam devices.
openssl s_client -connect [REDACTED]myfoscam.org:443
CONNECTED(00000003)
depth=0 C = CN, ST = Guangdong, L = Shenzhen, O = "Shenzhen Foscam Intelligent Technology Co,Ltd", CN = *.myfoscam.org
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 C = CN, ST = Guangdong, L = Shenzhen, O = "Shenzhen Foscam Intelligent Technology Co,Ltd", CN = *.myfoscam.org
verify error:num=21:unable to verify the first certificate
verify return:1
---
Certificate chain
0 s:/C=CN/ST=Guangdong/L=
i:/C=CN/O=WoSign CA Limited/CN=WoSign Class 3 OV Server CA
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIFFDCCA/
MQswCQYDVQQGEwJDTjEaMBgGA1UECh
BAMTG1dvU2lnbiBDbGFzcyAzIE9WIF
Fw0xNjEyMDcwOTIwMDdaMIGFMQswCQ
b25nMREwDwYDVQQHDAhTaGVuemhlbj
IEludGVsbGlnZW50IFRlY2hub2xvZ3
Y2FtLm9yZzCCASIwDQYJKoZIhvcNAQ
7x/7DLKPGneAnI9LWdMYbo+
Y/
mQyZxFuMU0X8M88+
P6S+2xCSHIUETpbPlpbRnk+
iuMAxtRe+
ugsGMuBmck0CAwEAAaOCAbMwggGvMA
BgEFBQcDAgYIKwYBBQUHAwEwCQYDVR
DsBxwaJJhZHpTAIwHwYDVR0jBBgwFo
KwYBBQUHAQEEczBxMDUGCCsGAQUFBz
bS9jbGFzczMvc2VydmVyL2NhMTA4Bg
aWduLmNvbS9jbGFzczMuc2VydmVyLm
aHR0cDovL2NybHMxLndvc2lnbi5jb2
IDAegg4qLm15Zm9zY2FtLm9yZ4IMbX
Z4EMAQICMDwGDSsGAQQBgptRAQMCAQ
dy53b3NpZ24uY29tL3BvbGljeS8wDQ
qzZmHTYvNPwFSF6AD1VXksIaqKvrj4
kkF7vK48yVwlZkV6+
lS5Su2FsVuPJBEIbRXQshRJycmxG9J
FeF4fEP4/
f1sqtSGbqN3iGQrEQeGMCDAE+
OVAbevhaNsE=
-----END CERTIFICATE-----
subject=/C=CN/ST=Guangdong/L=
issuer=/C=CN/O=WoSign CA Limited/CN=WoSign Class 3 OV Server CA
openssl s_client -connect [REDACTED]myfoscam.org:443
CONNECTED(00000003)
depth=0 C = CN, ST = Guangdong, L = Shenzhen, O = "Shenzhen Foscam Intelligent Technology Co,Ltd", CN = *.myfoscam.org
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 C = CN, ST = Guangdong, L = Shenzhen, O = "Shenzhen Foscam Intelligent Technology Co,Ltd", CN = *.myfoscam.org
verify error:num=21:unable to verify the first certificate
verify return:1
---
Certificate chain
0 s:/C=CN/ST=Guangdong/L=
i:/C=CN/O=WoSign CA Limited/CN=WoSign Class 3 OV Server CA
---
Server certificate
Komentarų nėra:
Rašyti komentarą