From 45853dcafa449a2bad794e7d55c993e2a165c1d1 Mon Sep 17 00:00:00 2001 From: Maxime Puys Date: Tue, 28 May 2024 11:16:20 +0200 Subject: [PATCH] Added: lab6 + typos --- .gitignore | 309 ++----------------------------------------------- labs/1/lab1.md | 2 +- labs/5/lab5.md | 2 +- labs/6/lab6.md | 110 ++++++++++++++++++ 4 files changed, 121 insertions(+), 302 deletions(-) create mode 100644 labs/6/lab6.md diff --git a/.gitignore b/.gitignore index 747d42e..7cc0deb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,303 +1,12 @@ -# ---> TeX -## Core latex/pdflatex auxiliary files: -*.aux -*.lof -*.log -*.lot -*.fls -*.out -*.toc -*.fmt -*.fot -*.cb -*.cb2 -.*.lb +# Ignore everything +* -## Intermediate documents: -*.dvi -*.xdv -*-converted-to.* -# these rules might exclude image files for figures etc. -# *.ps -# *.eps -# *.pdf +# Allows to traverse directories +!*/ -## Generated if empty string is given at "Please type another file name for output:" -.pdf - -## Bibliography auxiliary files (bibtex/biblatex/biber): -*.bbl -*.bcf -*.blg -*-blx.aux -*-blx.bib -*.run.xml - -## Build tool auxiliary files: -*.fdb_latexmk -*.synctex -*.synctex(busy) -*.synctex.gz -*.synctex.gz(busy) -*.pdfsync - -## Build tool directories for auxiliary files -# latexrun -latex.out/ - -## Auxiliary and intermediate files from other packages: -# algorithms -*.alg -*.loa - -# achemso -acs-*.bib - -# amsthm -*.thm - -# beamer -*.nav -*.pre -*.snm -*.vrb - -# changes -*.soc - -# comment -*.cut - -# cprotect -*.cpt - -# elsarticle (documentclass of Elsevier journals) -*.spl - -# endnotes -*.ent - -# fixme -*.lox - -# feynmf/feynmp -*.mf -*.mp -*.t[1-9] -*.t[1-9][0-9] -*.tfm - -#(r)(e)ledmac/(r)(e)ledpar -*.end -*.?end -*.[1-9] -*.[1-9][0-9] -*.[1-9][0-9][0-9] -*.[1-9]R -*.[1-9][0-9]R -*.[1-9][0-9][0-9]R -*.eledsec[1-9] -*.eledsec[1-9]R -*.eledsec[1-9][0-9] -*.eledsec[1-9][0-9]R -*.eledsec[1-9][0-9][0-9] -*.eledsec[1-9][0-9][0-9]R - -# glossaries -*.acn -*.acr -*.glg -*.glo -*.gls -*.glsdefs -*.lzo -*.lzs -*.slg -*.slo -*.sls - -# uncomment this for glossaries-extra (will ignore makeindex's style files!) -# *.ist - -# gnuplot -*.gnuplot -*.table - -# gnuplottex -*-gnuplottex-* - -# gregoriotex -*.gaux -*.glog -*.gtex - -# htlatex -*.4ct -*.4tc -*.idv -*.lg -*.trc -*.xref - -# hyperref -*.brf - -# knitr -*-concordance.tex -# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files -# *.tikz -*-tikzDictionary - -# listings -*.lol - -# luatexja-ruby -*.ltjruby - -# makeidx -*.idx -*.ilg -*.ind - -# minitoc -*.maf -*.mlf -*.mlt -*.mtc[0-9]* -*.slf[0-9]* -*.slt[0-9]* -*.stc[0-9]* - -# minted -_minted* -*.pyg - -# morewrites -*.mw - -# newpax -*.newpax - -# nomencl -*.nlg -*.nlo -*.nls - -# pax -*.pax - -# pdfpcnotes -*.pdfpc - -# sagetex -*.sagetex.sage -*.sagetex.py -*.sagetex.scmd - -# scrwfile -*.wrt - -# svg -svg-inkscape/ - -# sympy -*.sout -*.sympy -sympy-plots-for-*.tex/ - -# pdfcomment -*.upa -*.upb - -# pythontex -*.pytxcode -pythontex-files-*/ - -# tcolorbox -*.listing - -# thmtools -*.loe - -# TikZ & PGF -*.dpth -*.md5 -*.auxlock - -# titletoc -*.ptc - -# todonotes -*.tdo - -# vhistory -*.hst -*.ver - -# easy-todo -*.lod - -# xcolor -*.xcp - -# xmpincl -*.xmpi - -# xindy -*.xdy - -# xypic precompiled matrices and outlines -*.xyc -*.xyd - -# endfloat -*.ttt -*.fff - -# Latexian -TSWLatexianTemp* - -## Editors: -# WinEdt -*.bak -*.sav - -# Texpad -.texpadtmp - -# LyX -*.lyx~ - -# Kile -*.backup - -# gummi -.*.swp - -# KBibTeX -*~[0-9]* - -# TeXnicCenter -*.tps - -# auto folder when using emacs and auctex -./auto/* -*.el - -# expex forward references with \gathertags -*-tags.tex - -# standalone packages -*.sta - -# Makeindex log files -*.lpz - -# xwatermark package -*.xwm - -# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib -# option is specified. Footnotes are the stored in a file with suffix Notes.bib. -# Uncomment the next line to have this generated file ignored. -#*Notes.bib +# Specially ignore exams! +exams +# Manually allow PDF lectures and MD labs +!lectures/**/cours_symfony_*.pdf +!labs/**/*.md diff --git a/labs/1/lab1.md b/labs/1/lab1.md index a97756e..e4f68e5 100644 --- a/labs/1/lab1.md +++ b/labs/1/lab1.md @@ -110,7 +110,7 @@ public function getLogDir(): string ## Création de votre premier controlleur 6. Utilisez la console `Symfony` pour créer un controlleur que vous appellerez - `QuoteController`. Quels sont les fichiers crées par `Symfony` ? Obrservez + `QuoteController`. Quels sont les fichiers crées par `Symfony` ? Observez leur contenu. 7. Quelle route mène à ce controlleur ? Trouvez la réponse dans le fichier du diff --git a/labs/5/lab5.md b/labs/5/lab5.md index 7037fb4..5a92ec7 100644 --- a/labs/5/lab5.md +++ b/labs/5/lab5.md @@ -1,4 +1,4 @@ -# TP5: API Platform +# TP5 : API Platform ## Objectifs diff --git a/labs/6/lab6.md b/labs/6/lab6.md new file mode 100644 index 0000000..a1037ff --- /dev/null +++ b/labs/6/lab6.md @@ -0,0 +1,110 @@ +# TP6 : Renforcer la Sécurité des Applications Symfony + +## Objectifs : + +Les objectifs de ce TP sont : + +- Renforcer la sécurité d'un projet Symfony existant en mettant en place des mesures contre les menaces courantes +de sécurité web, telles que : + - le Cross-Site Scripting (XSS), + - le Cross-Site Request Forgery (CSRF), + - en permettant l'inscription sécurisée des utilisateurs, leur connexion et déconnexion, + - et en implémentant l'autorisation des utilisateurs en fonction des rôles. + +## Prérequis : + +- Un projet Symfony fonctionnel (votre projet `TweetTok`, votre projet Symfony, une SAE). + +## Ressources + +- [Documentation de Sécurité Symfony](https://symfony.com/doc/current/security.html) + +## Partie 1 : Protection contre les attaques XSS + +1. Utilisez l'un de vos formulaire (ajout d'un `Twok`) pour tester un exploit + de faille XSS (écrivez le code en JS). Que constatez-vous ? + - Indice : Utilisez la balise `