Giter Site home page Giter Site logo

lunarmodules / cgilua Goto Github PK

View Code? Open in Web Editor NEW
92.0 92.0 38.0 788 KB

CGILua is a tool for creating dynamic HTML pages and manipulating input data from Web forms.

Home Page: http://lunarmodules.github.io/cgilua

Lua 92.62% HTML 6.60% Makefile 0.78%

cgilua's People

Contributors

hishamhm avatar joaodutrabastos avatar maxguru avatar mpeterv avatar srdgame avatar tomasguisasola avatar xriss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cgilua's Issues

can not load the module on ubuntu 22.04 with lua5.2

it always tried to find cgilua.lua or cgilua/init.lua but there are no such files in 6.x release

on a old cgilua release with lua-5.1, I saw cgilua.lua installed via luarocks, that worked fine.

am I missing something to use cgilua 6.x?

local cgilua = require "cgilua"
print("CGILua loaded successfully.")

Weak session IDs generated CVE-2014-2875

I don't actually see any bug reports open on this CVE, so I am creating a bug report here.

https://security-tracker.debian.org/tracker/CVE-2014-2875

As far as I can tell, the issue is still present in the latest git source.

I believe the vulnerable code itself is in
https://github.com/keplerproject/cgilua/blob/master/src/cgilua/session.lua
and is these bits:

 local RANGE = 999999999
 [...]
 randseed (mod (time(), RANGE))

 [...]

 local function new_id ()
   return rand (RANGE)
 end

I think it it probably safe to assume rand() doesn't meet the requirements for a session id. As in it generates numbers that are predictable.

I am not really familiar with how to generate an appropriate id, but I do notice there are some crypto libraries for LUA, e.g. https://github.com/philanc/plc

On the Debian mailing list, it was suggested "a more secure function is to simply read the value from /dev/urandom".

cgilua.fcgi wsapi is nil

I get this error with apache2.4

cgilua.fcgi:33: attempt to index global 'wsapi' (a nil value)

Update:
I believe I am using old version as I was using luarocks.

Update Luarock

Can I ask you to update the luarockt for this project, please?

I'm sorry I did not explain myself. I'm Massimiliano Bertinetti and I'm the new lead developer of Sailor. By applying the master branches of the packages on which sailor depends I managed to put into production Sailor with Lua 5.3. If published on Luarocks I can also update Sailor with new dependencies and allow Sailor users to use Lua 5.3 with Sailor 0.6.0. Thank you!

authentication does not work with tokenPersistence as cookie

I am using the example files, which I set the options.tokenPersistence ot 'cookie'. Then I created a page named as aa.lp following the reference manual:

<title>Login</title> <% cgilua.enablesession () if not cgilua.authentication.username() then cgilua.redirect(cgilua.authentication.checkURL()) else -- continues with the application flow end %> dondoanfdafd

But the login fails, and the reason is there is no Set-Cookie in 302 redirection packet.

Running the example using FastCGI

Hi!

I'm trying to get the example app to run on Lua 5.2 and 5.3 and I'm having some problems. The first one is related to the builtin function unpack on Lua 5.3, installing the head of the branch master fix it. The seccond problem it with src/launchers/cgilua.fcgi, I'm not sure if I'm doing something wrong but the only way I can get it to work is if I set filename with the full path to app.lua

It maybe help to mention I'm using spawn-fcgi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.