<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Drunken Dev</title>
    <description>The latest articles on DEV Community by Drunken Dev (@ewnx01).</description>
    <link>https://dev.to/ewnx01</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F7152%2Fe1c14f2998049d309ae3d27bc00f1345.jpeg</url>
      <title>DEV Community: Drunken Dev</title>
      <link>https://dev.to/ewnx01</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ewnx01"/>
    <language>en</language>
    <item>
      <title>.env file in public folder is a security risk</title>
      <dc:creator>Drunken Dev</dc:creator>
      <pubDate>Sun, 08 Apr 2018 14:20:52 +0000</pubDate>
      <link>https://dev.to/ewnx01/env-file-in-public-folder-is-security-risk-59ej</link>
      <guid>https://dev.to/ewnx01/env-file-in-public-folder-is-security-risk-59ej</guid>
      <description>

&lt;p&gt;Unfortunately I must use Typo3 at work, I know stupid idea, and they store the whole application in the web servers document root, so everything is public by default.&lt;/p&gt;

&lt;p&gt;There's an &lt;a href="https://github.com/helhum/dotenv-connector"&gt;extension&lt;/a&gt; to use a .env file for the configuration, but this extension also want this file in the root of the public folder. &lt;strong&gt;That's a very high security risk&lt;/strong&gt;.&lt;br&gt;
If you forget to disallow the access to it in the .htaccess or server configuration everyone can see your credentials and whatever else you store there.&lt;/p&gt;

&lt;p&gt;Some time ago exactly this happens in my company. Purely accidental I found this security break and fixed it quickly. I can just hope it was not online for a long time, because inside the .env file where also hints where to find other scripts, password/user hints and other credentials.&lt;br&gt;
But this shows why you should never put your .env file in a public accessable folder and it is highly risky to implement an extension (or library) that expects this file in the public folder by default.&lt;/p&gt;

&lt;p&gt;Of course you can say it was the admin mistake to not forbid the access to this file. But this can happen very easily and your application should not rely on this, especially not for such a risky file. If you do it, that's a really bad design flaw and you should refactor it as soon possible.&lt;/p&gt;

&lt;p&gt;I know that the Typo3 developers are not following modern development or design rules and uses a lot of old coding styles, but I'll try an issue for this.&lt;/p&gt;


</description>
      <category>php</category>
      <category>environment</category>
      <category>typo3</category>
    </item>
    <item>
      <title>Hi, I'm ew</title>
      <dc:creator>Drunken Dev</dc:creator>
      <pubDate>Thu, 23 Feb 2017 09:46:55 +0000</pubDate>
      <link>https://dev.to/ewnx01/hi-im-ew</link>
      <guid>https://dev.to/ewnx01/hi-im-ew</guid>
      <description>&lt;p&gt;I have been coding for 10 years.&lt;/p&gt;

&lt;p&gt;You can find me on Twitter as &lt;a href="https://twitter.com/ewnx01" rel="noopener noreferrer"&gt;@ewnx01&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I live in Berlin.&lt;/p&gt;

&lt;p&gt;I mostly program in these languages: Symfony, PHP&lt;br&gt;
Some of my project can be found at &lt;a href="http://www.bitbucket.org/dknx01/" rel="noopener noreferrer"&gt;http://www.bitbucket.org/dknx01/&lt;/a&gt; and I help improving &lt;a href="https://github.com/MarlonSchultz/jeopardy" rel="noopener noreferrer"&gt;https://github.com/MarlonSchultz/jeopardy&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Nice to meet you.&lt;/p&gt;

</description>
      <category>introduction</category>
    </item>
  </channel>
</rss>
