<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 12: Avoid cleartext passwords in config.php</title><link>https://sourceforge.net/p/phpvirtualbox/feature-requests/12/</link><description>Recent changes to 12: Avoid cleartext passwords in config.php</description><atom:link href="https://sourceforge.net/p/phpvirtualbox/feature-requests/12/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 24 Apr 2016 20:43:31 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/phpvirtualbox/feature-requests/12/feed.rss" rel="self" type="application/rss+xml"/><item><title>#12 Avoid cleartext passwords in config.php</title><link>https://sourceforge.net/p/phpvirtualbox/feature-requests/12/?limit=25#c56b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I solved the problem protecting the phpvirtualbox folder with .htaccess/.htpasswd and making a small modification of config.php:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="c"&gt;% diff config.php.sample config.php&lt;/span&gt;
&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="n"&gt;a9&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;13&lt;/span&gt;&lt;span class="n"&gt;c13&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;var&lt;/span&gt; $&lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;'vbox'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;var&lt;/span&gt; $&lt;span class="n"&gt;password&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;'pass'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;---&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;var&lt;/span&gt; $&lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;var&lt;/span&gt; $&lt;span class="n"&gt;password&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;__construct&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;   $&lt;span class="n"&gt;this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; $&lt;span class="n"&gt;_SERVER&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;"&lt;span class="n"&gt;PHP_AUTH_USER&lt;/span&gt;"&lt;span class="p"&gt;];&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;   $&lt;span class="n"&gt;this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;password&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; $&lt;span class="n"&gt;_SERVER&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;"&lt;span class="n"&gt;PHP_AUTH_PW&lt;/span&gt;"&lt;span class="p"&gt;];&lt;/span&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Now before login to phpVirtualBox I must login to apache, and next my login data are used for authentication to VBoxManage. The password in .htpasswd is encrypted.&lt;/p&gt;
&lt;p&gt;BTW: Whe the login data of phpVirtualBox are not used to login to virtual machines? In multiuser system, when users have own virtual machines it will enable control only of their machines after login.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Marcin Kucharczyk</dc:creator><pubDate>Sun, 24 Apr 2016 20:43:31 -0000</pubDate><guid>https://sourceforge.net28e471a2c49140c50b49923f9d811ce6ba4ad0b2</guid></item><item><title>#12 Avoid cleartext passwords in config.php</title><link>https://sourceforge.net/p/phpvirtualbox/feature-requests/12/?limit=25#ebdc</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Here's the thing - if phpvirtualbox required a password encrypted with some key, it would still have to decrypt it before it sends it to vboxwebsrv which requires a plain text password. If it needs to decrypt it, it would need to store the key and any attacker with access to your system could easily decrypt it. It would be so easy to decrypt that there would just be no point. And many PHP applications do this for passwords. It is a false sense of security. Though I guess I could move in that route to make people feel better (falsly).&lt;/p&gt;
&lt;p&gt;The way I run all my servers is I dIsable authentication in vboxwebsrv and remove the password from config.php. &lt;/p&gt;
&lt;p&gt;I'll look again into if vboxauthsimple could be used. It does sound promising. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ian Moore</dc:creator><pubDate>Mon, 07 Dec 2015 03:11:22 -0000</pubDate><guid>https://sourceforge.net39c9f8296232b9faebd66bed0147e47c2df799d7</guid></item><item><title>#12 Avoid cleartext passwords in config.php</title><link>https://sourceforge.net/p/phpvirtualbox/feature-requests/12/?limit=25#da28</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The &lt;a href="http://xqus.com/blog/phpvirtbox-vboxauthsimple" rel="nofollow"&gt;http://xqus.com/blog/phpvirtbox-vboxauthsimple&lt;/a&gt; link is no longer available and phpvirtualbox is now at version 5.0-X.  Still appears to require the password to be hardcoded into the config.php.  Anyone have a way to NOT include the password in clear text of the config.php?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tim K</dc:creator><pubDate>Thu, 19 Nov 2015 02:12:28 -0000</pubDate><guid>https://sourceforge.netd9a402c63c719fa76d7e32094fc4e1ce5c5b77a0</guid></item><item><title>#12 Avoid cleartext passwords in config.php</title><link>https://sourceforge.net/p/phpvirtualbox/feature-requests/12/?limit=25#26e2</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for that proposal and link.&lt;/p&gt;
&lt;p&gt;That approach sounds even better - if we trust VirtualBox not to drop VBoxAuthSimple.&lt;/p&gt;
&lt;p&gt;Anyway it'd be great to see that integrated into the phpvirtualbox upstream.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christoph Lechleitner</dc:creator><pubDate>Sat, 01 Feb 2014 17:55:21 -0000</pubDate><guid>https://sourceforge.netd6c26507ae4a81a8c3eb39c8e0eca4cffc917f24</guid></item><item><title>#12 Avoid cleartext passwords in config.php</title><link>https://sourceforge.net/p/phpvirtualbox/feature-requests/12/?limit=50#c569</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This could be to some help: &lt;a href="http://xqus.com/blog/phpvirtbox-vboxauthsimple" rel="nofollow"&gt;http://xqus.com/blog/phpvirtbox-vboxauthsimple&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Audun Larsen</dc:creator><pubDate>Sat, 01 Feb 2014 17:42:47 -0000</pubDate><guid>https://sourceforge.netbf59a152aba9e1db620fcf66a8cb805931534f6c</guid></item><item><title>#12 Avoid cleartext passwords in config.php</title><link>https://sourceforge.net/p/phpvirtualbox/feature-requests/12/?limit=25#a4d9</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;A recently pubishled (generally positive) review in the German IT magazine iX (issue 12/2013, page 144), also mentioned poor authentication system as most important weakness of phpvirtualbox.&lt;/p&gt;
&lt;p&gt;I think a lot of people would like to see a major enhancement here.&lt;/p&gt;
&lt;p&gt;Actually, I'd expect Oracle to put some efforts (say, money for 1-2 full time developers) in this. They don't offer any Web UI on their own but point to phpvirtualbox, too. Unfortunately they are well known for really poor handling of security problems.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christoph Lechleitner</dc:creator><pubDate>Sun, 15 Dec 2013 16:26:20 -0000</pubDate><guid>https://sourceforge.net6ff908604ce78ae5850bb6ec58c60f4b03974b8f</guid></item><item><title>Avoid cleartext passwords in config.php</title><link>https://sourceforge.net/p/phpvirtualbox/feature-requests/12/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;As described in &lt;a href="https://code.google.com/p/phpvirtualbox/issues/detail?id=445" rel="nofollow"&gt;https://code.google.com/p/phpvirtualbox/issues/detail?id=445&lt;/a&gt; back at Google's Bugtracker used prior to the sourceforge transition, the fact that the password of the webservice user has to put in the config.php as clear text is "not a good idea", to say it polite.&lt;/p&gt;
&lt;p&gt;Also described there is a way to get rid of the clear text password using 4 additional lines for ajax.php, changing 1 line in virtualboxconnector.php, and a few special steps.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christoph Lechleitner</dc:creator><pubDate>Sun, 15 Dec 2013 16:23:39 -0000</pubDate><guid>https://sourceforge.netea417451cb2128c4381da8f1f96c41ea08ff8465</guid></item></channel></rss>