<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: File upload security</title>
		<link>https://legacy.forums.gravityhelp.com/topic/file-upload-security-1</link>
		<description>Gravity Support Forums Topic: File upload security</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 08:26:05 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/file-upload-security-1" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "File upload security"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-upload-security-1#post-38867</link>
			<pubDate>Tue, 25 Oct 2011 09:31:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38867@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes.  If WordPress gets it right, Gravity Forms gets it right.  If you have any more concerns, please feel free to post them.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rnfsolutions on "File upload security"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-upload-security-1#post-38849</link>
			<pubDate>Tue, 25 Oct 2011 05:40:23 +0000</pubDate>
			<dc:creator>rnfsolutions</dc:creator>
			<guid isPermaLink="false">38849@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ah thanks. OK, so what you're saying is it uses the built in file security of the WP core code. That's good enough for me. Many thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "File upload security"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-upload-security-1#post-38547</link>
			<pubDate>Fri, 21 Oct 2011 12:20:30 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38547@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Gravity Forms uses WordPress functions to check the file type.  In forms_model.php the file type is determined like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
 $type = wp_check_filetype($new_file);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That function is documented here:&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_check_filetype&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wp_check_filetype&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Full reference:&#60;br /&#62;
&#60;a href=&#34;http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/functions.php#L2454&#34; rel=&#34;nofollow&#34;&#62;http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/functions.php#L2454&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rnfsolutions on "File upload security"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-upload-security-1#post-38516</link>
			<pubDate>Fri, 21 Oct 2011 09:09:29 +0000</pubDate>
			<dc:creator>rnfsolutions</dc:creator>
			<guid isPermaLink="false">38516@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Indeed on my server, when I uploaded info.php.jpg and then used a browser to open it up it came back saying &#34;cannot be displayed because it contains errors&#34;. And I can't upload a info.php file because that's not an allowed file type in the upload widget. So that's all fine and dandy, but does not give me a definitive answer. &#60;/p&#62;
&#60;p&#62;I'd prefer an official response on whether there are any checks in place during upload to try and minimise carefully crafted malicious files - after all my tests were pretty rudimentary.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "File upload security"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-upload-security-1#post-38288</link>
			<pubDate>Wed, 19 Oct 2011 11:20:38 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38288@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I was able to upload a text file, named as info.php.jpg, where I only allowed jpg extensions, but it didn't render as php, which is probably due to the server configuration.&#60;/p&#62;
&#60;p&#62;You're welcome to try uploading various exploits to this form, which will include images in the post, and will be published immediately.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://gravity.chrishajer.com/simple-image-upload/&#34; rel=&#34;nofollow&#34;&#62;http://gravity.chrishajer.com/simple-image-upload/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rnfsolutions on "File upload security"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/file-upload-security-1#post-38265</link>
			<pubDate>Wed, 19 Oct 2011 05:07:38 +0000</pubDate>
			<dc:creator>rnfsolutions</dc:creator>
			<guid isPermaLink="false">38265@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, what security is in place to ensure that a file uploaded via a form (using the File Upload field) is actually the correct file type and not a malicious file hiding behind a different file extension e.g. a lame example, but if I allowed .jpg files to be uploaded and created a simple phpinfo page named info.php.jpg, would this be valid?&#60;/p&#62;
&#60;p&#62;I assume it's not just matched on extension name but there's maybe some kind of checking of the file mime type as well for instance?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
