Rejeu de formulaires

Présentation

Form replay allows you to open a session on a protected application by filling a HTML POST login form and autosubmitting it, without asking anything to the user.

Ce type de mécanisme SSO n'est pas parfait et peut générer des problèmes tels des blocages de mots-de-passe, sessions locales mal closes, etc...

Il est en général préférable de trouver une autre solution pour protéger les applications avec LL::NG. Ainsi, vérifier si l'application est connue ou essayer d'adapter le code source.

If you configure form replay with LL::NG, the Handler will detect forms to fill, add a javascript in the html page to fill form fields with dummy datas and submit it, then intercept the POST request and add POST data in the request body.

POST data can be static values or computed from user's session.

Pour envoyer le mot-de-passe utilisateur, il faut activer le stockage du mot-de-passe. Dans ce cas, la variable $_password peut être utilisée dans tous les champs à envoyer.

Configuration

Il faut récolter quelques informations:

If you don't know jQuery selector, just be aware that they are similar to css selectors: for example, button#foo points to the html button whose id is “foo”, and .bar points to all html elements of css class “bar”.

Par exemple :

Go in Manager, “Virtual Hosts” » virtualhost » “Form replay” and click on “New form replay”.

Renseigner les valeurs ici :

Then click on New variable and add all data with their values, for example:

Il est possible de définir plusieurs URL de rejeu de formulaires par hôte virtuel.