Security Advisories (1)
CVE-2026-5083 (2026-04-08)

Ado::Sessions versions through 0.935 for Perl generates insecure session ids. The session id is generated from a SHA-1 hash seeded with the built-in rand function, the epoch time, and the PID. The PID will come from a small set of numbers, and the epoch time may be guessed, if it is not leaked from the HTTP Date header. The built-in rand function is unsuitable for cryptographic usage. Predicable session ids could allow an attacker to gain access to systems. Note that Ado is no longer maintained, and has been removed from the CPAN index. It is still available on BackPAN.

NAME

Ado::Plugin::Routes - Keep routes separately.

SYNOPSIS

#Open $MOJO_HOME/etc/plugins/routes.conf and describe your routes
routes     => [
      {route => '/ado-users', via => ['GET'],  
        to => 'ado-users#list',},
      {route => '/ado-users', via => ['POST'], 
        to => 'ado-users#add',},
      ...

DESCRIPTION

Ado::Plugin::Routes allows you to define your routes in a separate file $MOJO_HOME/etc/plugins/routes.conf. In the configuration file you can also use the app keyword and add complex routes as you would do directly in the code.

METHODS

Ado::Plugin::Routes inherits all methods from Ado::Plugin and implements the following new ones.

register

This method is called by $app->plugin. Registers the plugin in Ado application and merges routes configuration from $MOJO_HOME/etc/ado.conf with routes defined in $MOJO_HOME/etc/plugins/routes.conf. Routes defined in ado.conf can overwrite those defined in plugins/routes.conf.

CONDITIONS

This plugin provides some convenient conditions that you can add to your routes. They will be always available and you can use them in your plugins. How to write conditions is explained in "Conditions" in Mojolicious::Guides::Routing and "Condition_plugins" in Mojolicious::Guides::Routing. TODO.

SEE ALSO

Mojolicious::Guides::Routing, Mojolicious::Routes, Ado::Plugin, Ado::Manual::Plugins,Mojolicious::Plugins, Mojolicious::Plugin,

SPONSORS

The original author

AUTHOR

Красимир Беров (Krasimir Berov)

COPYRIGHT AND LICENSE

Copyright 2013 Красимир Беров (Krasimir Berov).

This program is free software, you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License v3 (LGPL-3.0). You may copy, distribute and modify the software provided that modifications are open source. However, software that includes the license may release under a different license.

See http://opensource.org/licenses/lgpl-3.0.html for more information.