<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — FA 2312+ User Print Profile Update CSRF Attack Error]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3468&amp;type=atom" />
	<updated>2012-10-24T13:36:59Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3468</id>
		<entry>
			<title type="html"><![CDATA[Re: FA 2312+ User Print Profile Update CSRF Attack Error]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=13960#p13960" />
			<content type="html"><![CDATA[<p>It seems to work after 9pm server time! <br />Failed atleast from 7:30pm till then.</p><p>No change in any scripts and it works by magic!</p><p>Even a <strong>ipconfig /flushdns</strong> with browser clear cache - MSIE and FF - on intranet (VPN) and on WAN redirection from Nettica earlier did not solve the issue earlier.</p><p>The question is how does a CSRF attack get manifest in the FA code to work at the will of an unknown hand?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-10-24T13:36:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=13960#p13960</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[FA 2312+ User Print Profile Update CSRF Attack Error]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=13959#p13959" />
			<content type="html"><![CDATA[<p>In a <strong>Non-Default Company (non zero company number) </strong>, attempting to update a User&#039;s Print Profile results in a CSRF Attack Error. </p><p>All other fields can be changed without any errors in both default and non default companies. </p><p><strong>Setup -&gt; User Accounts Setup -&gt; Edit Any User</strong></p><p>The $_SESSION[&#039;csrf_token&#039;] is different from the $_POST[&#039;_token&#039;] and hence the function <strong>check_csrf_token()</strong> in line 67 of <strong>includes/ui/ui_controls.inc</strong> fails. </p><p>This means that the session variable gets restarted on the end_form() function that generates a new session which seems to jump the gun.</p><p>Also the db schema default value for the <strong>print_profile</strong> field in the <strong>users</strong> table should be <strong>blank</strong> instead of <strong>1</strong> as it stores a string value of the profile name when assigned.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-10-24T13:17:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=13959#p13959</id>
		</entry>
</feed>
