Skip to content

Commit 1cc00b2

Browse files
committed
Add vulnerable setup info in mediawiki_syntaxhighlight.md
1 parent ca1f8da commit 1cc00b2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

documentation/modules/exploit/multi/http/mediawiki_syntaxhighlight.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
Any MediaWiki installation with SyntaxHighlight version 2.0 installed & enabled. This extension ships with the AIO package of MediaWiki 1.27.x & 1.28.x. A fix for this issue is included in MediaWiki version 1.28.2 and version 1.27.3.
44

5+
## Vulnerable Setup
6+
7+
To set up the vulnerable environment, please do:
8+
9+
1. Download [MediaWiki (such as 1.28.0)](https://releases.wikimedia.org/mediawiki/1.28/mediawiki-1.28.0.tar.gz)
10+
2. Install MediaWiki on a LAMP setup (ideally)
11+
3. Install composer ```curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer```
12+
4. Do: ```cd /var/www/html/mediawiki/extensions/SyntaxHighlight_GeSHi```
13+
5. Do: ```composer update```
14+
6. Open your LocalSettings.php with a text editor, and add this line at the end of the file: ```wfLoadExtension( 'SyntaxHighlight_GeSHi' );```
15+
16+
At this point, you are ready to test this setup.
17+
518
## Verification Steps
619

720
1. `use exploit/multi/http/mediawiki_syntaxhighlight`
@@ -35,6 +48,17 @@
3548
In case the wiki is configured as private, a read-only (or better) account is needed to exploit this issue. Provide the password of that account here.
3649

3750
## Sample Output
51+
52+
### The Check command
53+
54+
The module comes with a check command that allows you to check whether the target might be
55+
vulnerable or not, for example:
56+
57+
```
58+
msf exploit(mediawiki_syntaxhighlight) > check
59+
[*] 192.168.146.203:80 The target appears to be vulnerable.
60+
```
61+
3862
### MediaWiki 1.27.1-2 on Ubuntu 16.10
3963

4064
```

0 commit comments

Comments
 (0)