diff --git a/pygoat/introduction/templates/Lab/A9/a9.html b/pygoat/introduction/templates/Lab/A9/a9.html index 7040f57ab..5656e9d1d 100644 --- a/pygoat/introduction/templates/Lab/A9/a9.html +++ b/pygoat/introduction/templates/Lab/A9/a9.html @@ -15,11 +15,23 @@

What is Using Components with Know Vulnerability means?

- This lab helps us to understand some areas where this threat can occur. -
The user on accessing the lab is given with certain libraries used by jack in his project. - Try to identify if they are safe or vulnerable. - - + This lab helps us to understand why components with know vulnerability can be a serious issue. +
+ The user on accessing the lab is provided with a feature to convert yaml files into json objects. + The user needs to choose an yaml file and click upload to get the json data. + There is also a get version feature which tells the user the version of the library the app uses. + + Exploiting the vulnerability. +

@@ -29,7 +41,7 @@

What is Using Components with Know Vulnerability means?

-

Mitigation

+

Mitigation

diff --git a/pygoat/introduction/views.py b/pygoat/introduction/views.py index b656c82d1..94c97e0d7 100644 --- a/pygoat/introduction/views.py +++ b/pygoat/introduction/views.py @@ -256,8 +256,12 @@ def a9_lab(request): try : file=request.FILES["file"] - data = yaml.load(file) - return render(request,"Lab/A9/a9_lab.html",{"data":data}) + try : + data = yaml.load(file) + return render(request,"Lab/A9/a9_lab.html",{"data":data}) + except: + return render(request, "Lab/A9/a9_lab.html", {"data": "Error"}) + except: return render(request, "Lab/A9/a9_lab.html", {"data":"Please Upload a Yaml file."})