<feed xmlns='http://www.w3.org/2005/Atom'>
<title>luci/libs/web/luasrc/sauth.lua, branch 0.11.1</title>
<subtitle>Lua Configuration Interface (mirror)</subtitle>
<id>https://git.openwrt.org/project/luci/atom?h=0.11.1</id>
<link rel='self' href='https://git.openwrt.org/project/luci/atom?h=0.11.1'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/'/>
<updated>2012-08-08T09:48:47Z</updated>
<entry>
<title>libs/web: rework luci.sauth</title>
<updated>2012-08-08T09:48:47Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2012-08-08T09:48:47Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=abef50b85238f9effd7e6d6b3195358a84e56ecc'/>
<id>urn:sha1:abef50b85238f9effd7e6d6b3195358a84e56ecc</id>
<content type='text'>
	- perform decoding/encoding transparently in read() and write()
	- remove decode() and encode() helpers
	- introduce reap() to kill expired sessions
</content>
</entry>
<entry>
<title>Rework authentication system</title>
<updated>2012-08-07T19:11:56Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2012-08-07T19:11:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=a58370ab74aebca6871b1524a655f7bb5086e0a6'/>
<id>urn:sha1:a58370ab74aebca6871b1524a655f7bb5086e0a6</id>
<content type='text'>
The validity of authentication tokens was determined by the
mtime of respective authentication tokens on filesystem
stored in $sessionpath.
Talking about hardware without RTC or without a prior
connection to a time server, date/time usually around 1970 -
so is the mtime of the authentication token file in
$sessionpath.

When now configuring an internet connection via LuCI, the
system might fetch the current date/time (e.g. via ntp)
which invalidates the token, returns "403 Forbidden" and
kicks the user out of the interface.

This patch changes the authentication system to use time values
based on the uptime of the machine - rather than values based upon
gettimeofday() and {a|m}time values - and save them inside the token.
That way can always determine the difference between login
(last interaction respectively) and the current time, in-
dependant of the system clock jumping backwards/forwards.

Warning: This patch removes the clean() function and respective calls.
This means, invalid tokens will NOT be determined and removed from
filesystem automatically anymore.
Before, every HTTP-call caused a scan for invalid tokens,
which is quite expensive. Instead consider using a cron job
deleting all stalled files periodically.

Contributed by T-Labs, Deutsche Telekom Innovation Laboratories

Signed-off-by: Mirko Vogt &lt;mirko@openwrt.org&gt;
</content>
</entry>
<entry>
<title>Typo</title>
<updated>2009-07-31T17:08:59Z</updated>
<author>
<name>Steven Barth</name>
</author>
<published>2009-07-31T17:08:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=8b65a44fe8977908d2b7206feb601b696f276c44'/>
<id>urn:sha1:8b65a44fe8977908d2b7206feb601b696f276c44</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix cookie logout</title>
<updated>2009-07-31T17:08:18Z</updated>
<author>
<name>Steven Barth</name>
</author>
<published>2009-07-31T17:08:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=f648ab3445df562bc3d4c607d86f19f5bc65794e'/>
<id>urn:sha1:f648ab3445df562bc3d4c607d86f19f5bc65794e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>convert luci.fs users to nixio.fs api</title>
<updated>2009-07-19T00:24:58Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2009-07-19T00:24:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=8fcd841aa9af96c8a4a4d3c1a555d2d1ed42332c'/>
<id>urn:sha1:8fcd841aa9af96c8a4a4d3c1a555d2d1ed42332c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Drop support for luaposix and bitlib (obsoleted by nixio)</title>
<updated>2009-06-21T13:42:26Z</updated>
<author>
<name>Steven Barth</name>
</author>
<published>2009-06-21T13:42:26Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=30b216f774c2404a965807ddb93a4a4b2aaeac04'/>
<id>urn:sha1:30b216f774c2404a965807ddb93a4a4b2aaeac04</id>
<content type='text'>
Mark luci.fs as deprecated
</content>
</entry>
<entry>
<title>Added luci.sauth.kill, sanitize luci.sauth even more</title>
<updated>2008-12-14T21:42:59Z</updated>
<author>
<name>Steven Barth</name>
</author>
<published>2008-12-14T21:42:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=8b978f79fca72d3d8d76a1fb147addea2d7e3ded'/>
<id>urn:sha1:8b978f79fca72d3d8d76a1fb147addea2d7e3ded</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Inprove sanity check for luci.sauth.read</title>
<updated>2008-09-05T14:52:06Z</updated>
<author>
<name>Steven Barth</name>
</author>
<published>2008-09-05T14:52:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=c03bde275f48bfc1711a2fcae9b09e3b83fe27ec'/>
<id>urn:sha1:c03bde275f48bfc1711a2fcae9b09e3b83fe27ec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed some minor session handling issues</title>
<updated>2008-09-05T14:28:36Z</updated>
<author>
<name>Steven Barth</name>
</author>
<published>2008-09-05T14:28:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=e2e1cf54974c5276ba8e874c2029857e8f97629a'/>
<id>urn:sha1:e2e1cf54974c5276ba8e874c2029857e8f97629a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libs/web: Added several sanity checks to avoid local privilege escalation</title>
<updated>2008-09-01T16:05:34Z</updated>
<author>
<name>Steven Barth</name>
</author>
<published>2008-09-01T16:05:34Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=bb8137062f3ea698d39ca25b86b44b9c3cc12dde'/>
<id>urn:sha1:bb8137062f3ea698d39ca25b86b44b9c3cc12dde</id>
<content type='text'>
</content>
</entry>
</feed>
