forked from wapiti-scanner/wapiti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test files for the wp_enum module
- Loading branch information
1 parent
2e81fb4
commit 44c0ada
Showing
7 changed files
with
1,728 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
ARG WP_HASH_TAG=":6.2.0" | ||
FROM wordpress${WP_HASH_TAG} | ||
|
||
ENV DEPENDENCIES "curl unzip" | ||
|
||
# Install zip utility | ||
RUN apt-get update -y &&\ | ||
apt-get install ${DEPENDENCIES} -y --no-install-recommends &&\ | ||
apt-get -y autoremove &&\ | ||
apt-get clean | ||
|
||
# Pre-moving files for a lightest image | ||
RUN rm -rf /var/www/html/* &&\ | ||
mv /usr/src/wordpress/* /var/www/html/ | ||
|
||
# Install Contact Form 7 plugin | ||
# Yoast SEO plugin | ||
# Jetpack plugin | ||
# WorFence plugin | ||
# WPForms plugin | ||
# OceanWP Theme | ||
RUN echo 'https://downloads.wordpress.org/plugin/contact-form-7.5.7.5.zip' \ | ||
'https://downloads.wordpress.org/plugin/wordpress-seo.19.7.1.zip' \ | ||
'https://downloads.wordpress.org/plugin/jetpack.11.9.zip' \ | ||
'https://downloads.wordpress.org/plugin/wordfence.7.5.0.zip' \ | ||
'https://downloads.wordpress.org/plugin/wpforms-lite.1.7.5.3.zip' \ | ||
'https://downloads.wordpress.org/theme/oceanwp.3.4.3.zip' \ | ||
| xargs -P 6 -I {} sh -c 'curl -o /tmp/$(basename {} | cut -d'.' -f1).zip -SL {} && \ | ||
unzip -o /tmp/$(basename {} | cut -d'.' -f1) -d /var/www/html/wp-content/$(echo {} | cut -d'/' -f4)s/ && \ | ||
rm /tmp/$(basename {} | cut -d'.' -f1).zip' | ||
|
||
|
||
|
||
# Start Apache | ||
CMD ["apache2-foreground"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../check.sh |
146 changes: 146 additions & 0 deletions
146
tests/integration/test_mod_wp_enum/assertions/wordpress.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
{ | ||
"vulnerabilities": { | ||
"Fingerprint web application framework": [] | ||
}, | ||
"additionals": { | ||
"Fingerprint web technology": [ | ||
{ | ||
"method": "GET", | ||
"path": "//wp-content/plugins/akismet/readme.txt", | ||
"info": "{\"name\": \"akismet\", \"versions\": [\"\"], \"categories\": [\"WordPress plugins\"], \"groups\": [\"Add-ons\"]}", | ||
"level": 0, | ||
"parameter": "", | ||
"module": "wp_enum", | ||
"http_request": "GET //wp-content/plugins/akismet/readme.txt HTTP/1.1\nhost: wordpress\nconnection: keep-alive\nuser-agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0\naccept-language: en-US\naccept-encoding: gzip, deflate, br\naccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", | ||
"wstg": [ | ||
"WSTG-INFO-02", | ||
"WSTG-INFO-08" | ||
], | ||
"detail": { | ||
"response": { | ||
"status_code": 403, | ||
"headers": [ | ||
[ | ||
"connection", | ||
"Keep-Alive" | ||
], | ||
[ | ||
"content-length", | ||
"274" | ||
], | ||
[ | ||
"content-type", | ||
"text/html; charset=iso-8859-1" | ||
], | ||
[ | ||
"server", | ||
"Apache/2.4.56 (Debian)" | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"method": "GET", | ||
"path": "//wp-content/plugins/contact-form-7/readme.txt", | ||
"info": "{\"name\": \"contact-form-7\", \"versions\": [\"5.7.5\"], \"categories\": [\"WordPress plugins\"], \"groups\": [\"Add-ons\"]}", | ||
"level": 0, | ||
"parameter": "", | ||
"module": "wp_enum", | ||
"http_request": "GET //wp-content/plugins/contact-form-7/readme.txt HTTP/1.1\nhost: wordpress\nconnection: keep-alive\nuser-agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0\naccept-language: en-US\naccept-encoding: gzip, deflate, br\naccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", | ||
"wstg": [ | ||
"WSTG-INFO-02", | ||
"WSTG-INFO-08" | ||
], | ||
"detail": { | ||
"response": { | ||
"status_code": 200, | ||
"headers": [ | ||
[ | ||
"accept-ranges", | ||
"bytes" | ||
], | ||
[ | ||
"connection", | ||
"Keep-Alive" | ||
], | ||
[ | ||
"content-length", | ||
"1750" | ||
], | ||
[ | ||
"content-type", | ||
"text/plain" | ||
], | ||
[ | ||
"server", | ||
"Apache/2.4.56 (Debian)" | ||
], | ||
[ | ||
"vary", | ||
"Accept-Encoding" | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"method": "GET", | ||
"path": "//wp-content/themes/twentytwentyone/readme.txt", | ||
"info": "{\"name\": \"twentytwentyone\", \"versions\": [\"1.8\"], \"categories\": [\"WordPress themes\"], \"groups\": [\"Add-ons\"]}", | ||
"level": 0, | ||
"parameter": "", | ||
"module": "wp_enum", | ||
"http_request": "GET //wp-content/themes/twentytwentyone/readme.txt HTTP/1.1\nhost: wordpress\nconnection: keep-alive\nuser-agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0\naccept-language: en-US\naccept-encoding: gzip, deflate, br\naccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", | ||
"wstg": [ | ||
"WSTG-INFO-02", | ||
"WSTG-INFO-08" | ||
], | ||
"detail": { | ||
"response": { | ||
"status_code": 200, | ||
"headers": [ | ||
[ | ||
"accept-ranges", | ||
"bytes" | ||
], | ||
[ | ||
"connection", | ||
"Keep-Alive" | ||
], | ||
[ | ||
"content-length", | ||
"1957" | ||
], | ||
[ | ||
"content-type", | ||
"text/plain" | ||
], | ||
[ | ||
"server", | ||
"Apache/2.4.56 (Debian)" | ||
], | ||
[ | ||
"vary", | ||
"Accept-Encoding" | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"method": "GET", | ||
"path": "/feed/rss2/", | ||
"info": "{\"name\": \"WordPress\", \"versions\": [], \"categories\": [\"CMS\", \"Blogs\"], \"groups\": [\"Content\"]}", | ||
"level": 0, | ||
"parameter": "", | ||
"module": "wp_enum", | ||
"http_request": "GET /feed/rss2/ HTTP/1.1\nhost: wordpress\nconnection: keep-alive\nuser-agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0\naccept-language: en-US\naccept-encoding: gzip, deflate, br\naccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8", | ||
"wstg": [], | ||
"detail": { | ||
"response": null | ||
} | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.