<feed xmlns='http://www.w3.org/2005/Atom'>
<title>markzz/aurweb.git/web/html/account.php, branch v2.2.1</title>
<subtitle>aurweb working repository</subtitle>
<id>https://git.markzz.net/markzz/aurweb.git/atom/web/html/account.php?h=v2.2.1</id>
<link rel='self' href='https://git.markzz.net/markzz/aurweb.git/atom/web/html/account.php?h=v2.2.1'/>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/'/>
<updated>2013-03-19T13:03:34Z</updated>
<entry>
<title>Enforce e-mail validation during registration</title>
<updated>2013-03-19T13:03:34Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2013-03-19T12:44:08Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=f1a4b508e57879e2c17feded54f0d1b82ae54d2b'/>
<id>urn:sha1:f1a4b508e57879e2c17feded54f0d1b82ae54d2b</id>
<content type='text'>
Remove the password field from the account creation form and always send
a password reset request via e-mail instead. This ensures that only
users with valid e-mail addresses are able to login.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Fix default selection on the account edit page</title>
<updated>2013-02-10T11:11:36Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2012-11-18T09:21:51Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=21e6c3f65ff4b0daeac75d6d66dcdd33fb98d646'/>
<id>urn:sha1:21e6c3f65ff4b0daeac75d6d66dcdd33fb98d646</id>
<content type='text'>
We used a mixture of account type IDs and account type descriptions on
the account edit page. This resulted in the account type field always
defaulting to "Normal user" after an invalid form had been submitted.

Consistently use account type IDs to avoid this.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Remove unneeded database connection calls</title>
<updated>2013-02-10T11:10:38Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2013-02-03T16:26:32Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=ecf2caf7fb137d0cd37746cd5db7c14b5599a2e3'/>
<id>urn:sha1:ecf2caf7fb137d0cd37746cd5db7c14b5599a2e3</id>
<content type='text'>
Since all database related functions will establish a connection
when needed, there is no need to pre-emptively try and establish
a database connection.

Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Add database wrapper class and new connection method</title>
<updated>2013-02-10T11:10:37Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2013-02-03T16:26:28Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=8e03e68d687015b5cd8c9d3857e1a1d007252afa'/>
<id>urn:sha1:8e03e68d687015b5cd8c9d3857e1a1d007252afa</id>
<content type='text'>
Uses the Singleton pattern to ensure all queries use the same
database connection that is released upon script completion.

All database connections should now be called with DB::connect() and
not db_connect().

Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Replace permission check code with can_edit_account()</title>
<updated>2013-01-30T08:25:29Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2013-01-22T22:24:17Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=aab6eed1387a9f73759afc22ff3219e4844a34c0'/>
<id>urn:sha1:aab6eed1387a9f73759afc22ff3219e4844a34c0</id>
<content type='text'>
Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Fix account editing and hijacking vulnerability</title>
<updated>2012-11-29T22:23:10Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2012-11-29T21:54:29Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=87fe4701cd2e84c70c080eade1c2a0f1ffa3c6d9'/>
<id>urn:sha1:87fe4701cd2e84c70c080eade1c2a0f1ffa3c6d9</id>
<content type='text'>
Checks are in place to avoid users getting account editing forms
they shouldn't have access to. The appropriate checks before
editing the account in the backend are not in place.

This vulnerability allows a user to craft malicious POST data to
edit other user accounts, thereby allowing account hijacking.

Add a new flexible function can_edit_account() to determine if
a user has appropriate permissions. Run the permission check before
processing any account information in the backend.

Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Overhaul ability to edit own account</title>
<updated>2012-09-17T22:59:45Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2012-09-15T14:22:50Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=e84eb4ae54ceaa329d154bcac214be281e71ba0a'/>
<id>urn:sha1:e84eb4ae54ceaa329d154bcac214be281e71ba0a</id>
<content type='text'>
* Restructure account.php to remove redundant code.
* Remove own_account_details().
* Rework logic check to default to no access to account edit form.
* Make default account action viewing account info.

Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2012-07-14T20:52:04Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2012-07-14T20:47:04Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=f3ce74c714e3460bb3e3e786f626e397d3139062'/>
<id>urn:sha1:f3ce74c714e3460bb3e3e786f626e397d3139062</id>
<content type='text'>
Conflicts:
	web/html/account.php
	web/html/addvote.php
	web/html/pkgsubmit.php
	web/lib/acctfuncs.inc.php
	web/template/actions_form.php
	web/template/pkg_comment_form.php
	web/template/pkg_comments.php
	web/template/pkg_details.php
	web/template/pkg_search_results.php
	web/template/tu_details.php
</content>
</entry>
<entry>
<title>acctfuncs.inc.php: Move XHTML to account_details.php template</title>
<updated>2012-07-06T09:27:16Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2012-06-29T20:52:45Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=c1bb1df2b3c0e860a29282ec00e74630133742c3'/>
<id>urn:sha1:c1bb1df2b3c0e860a29282ec00e74630133742c3</id>
<content type='text'>
XHTML should be eliminated from lib/ as much as possible. This pulls the XHTML
out of the display_account_info function that echoes the code, and moves it
to the new account_details.php template file.

Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>account.php: Pull out DB code</title>
<updated>2012-07-06T09:27:03Z</updated>
<author>
<name>canyonknight</name>
<email>canyonknight@gmail.com</email>
</author>
<published>2012-05-23T19:32:52Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=8a59cd620804909400ea526602bffa1e2f3d389c'/>
<id>urn:sha1:8a59cd620804909400ea526602bffa1e2f3d389c</id>
<content type='text'>
* Move DB code in account.php to new functions in  acctfuncs.inc.php
* Centralization of DB code important in a future transition to PDO interface
* Consolidate redudant SQL statements from DisplayAccount and AccountInfo
* Consolidation also adds ability to edit accounts based on username

Signed-off-by: canyonknight &lt;canyonknight@gmail.com&gt;
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
</feed>
