running Room 5 : Join the game

Virtual environnement to attack can be reached at : ctf05.root-me.org
Time remaining : 00:03:58

Informations

  • Virtual environnement chosen : AppArmorJail1
  • Description : 
    Attention : this CTF-ATD is linked to the challenge "AppArmor Jail - Introduction"

    When connecting to the administrator’s server, a restricted shell via an AppArmor policy prevents you from reading the flag even though you are the owner...

    Find a way to read the flag at any cost and override the AppArmor policy in place which is configured as follows:

    #include <tunables/global>

    profile docker_chall01 flags=(attach_disconnected,mediate_deleted) {
       #include <abstractions/base>
       network,
       capability,
       file,
       umount,
       signal (send,receive),
       deny mount,

       deny /sys/[^f]*/** wklx,
       deny /sys/f[^s]*/** wklx,
       deny /sys/fs/[^c]*/** wklx,
       deny /sys/fs/c[^g]*/** wklx,
       deny /sys/fs/cg[^r]*/** wklx,
       deny /sys/firmware/** rwklx,
       deny /sys/kernel/security/** rwklx,

       deny @{PROC}/* w,   # deny write for all files directly in /proc (not in a subdir)
       # deny write to files not in /proc/<number>/** or /proc/sys/**
       deny @{PROC}/{[^1-9],[^1-9][^0-9],[^1-9s][^0-9y][^0-9s],[^1-9][^0-9][^0-9][^0-9]*}/** w,
       deny @{PROC}/sys/[^k]** w,  # deny /proc/sys except /proc/sys/k* (effectively /proc/sys/kernel)
       deny @{PROC}/sys/kernel/{?,??,[^s][^h][^m]**} w,  # deny everything except shm* in /proc/sys/kernel/
       deny @{PROC}/sysrq-trigger rwklx,
       deny @{PROC}/kcore rwklx,

       /home/app-script-ch27/bash px -> bashprof1,
     
    }
    profile bashprof1 flags=(attach_disconnected,mediate_deleted) {
       #include <abstractions/base>
       #include <abstractions/bash>
       
       network,
       capability,
       deny mount,
       umount,
       signal (send,receive),

       deny /sys/[^f]*/** wklx,
       deny /sys/f[^s]*/** wklx,
       deny /sys/fs/[^c]*/** wklx,
       deny /sys/fs/c[^g]*/** wklx,
       deny /sys/fs/cg[^r]*/** wklx,
       deny /sys/firmware/** rwklx,
       deny /sys/kernel/security/** rwklx,

       deny @{PROC}/* w,   # deny write for all files directly in /proc (not in a subdir)
       # deny write to files not in /proc/<number>/** or /proc/sys/**
       deny @{PROC}/{[^1-9],[^1-9][^0-9],[^1-9s][^0-9y][^0-9s],[^1-9][^0-9][^0-9][^0-9]*}/** w,
       deny @{PROC}/sys/[^k]** w,  # deny /proc/sys except /proc/sys/k* (effectively /proc/sys/kernel)
       deny @{PROC}/sys/kernel/{?,??,[^s][^h][^m]**} w,  # deny everything except shm* in /proc/sys/kernel/
       deny @{PROC}/sysrq-trigger rwklx,
       deny @{PROC}/kcore rwklx,

       / r,
       /** mrwlk,
       /bin/** ix,
       /usr/bin/** ix,
       /lib/x86_64-linux-gnu/ld-*.so mrUx,
       deny /home/app-script-ch27/flag.txt r,
    }
    • Start the CTF-ATD "AppArmorJail1"
    • Connect via SSH to the machine on port 22222 (app-script-ch27:app-script-ch27)
    • The challenge validation password is in the /home/app-script-ch27/flag.txt file
    • The validation password of the CTF ATD is in the file /passwd

    Start the challenge Game duration : 240 min

  • Validation flag is stored in the file /passwd
  • Only registered players for this game can attack the virtual environnement.
  • A tempo prevent game starting to early or too late.
  • Game will start when one player has choosen his virtual environnement and declared himself as ready.

Player's list

World Map


0x0 35 Available rooms

Room Virtual environnement chosen State Attackers count
ctf01 Kioptrix level 2 running
Time remaining : 03:16:04
2
Zinelabidine, Ibrahhim
ctf02 OpenClassrooms_SkillProgram_AD1 running
Time remaining : 00:01:52
1
Florent Caux
ctf03 SamBox v2 running
Time remaining : 01:19:09
1
Hacktimel
ctf04 BreakingRootme2020 running
Time remaining : 01:55:21
1
sonwever
ctf05 AppArmorJail1 running
Time remaining : 00:03:57
3
mzahi, Adoew, ledoug
ctf06 waiting 0
ctf07 Nodeful running
Time remaining : 01:26:30
1
Nurgalym Jambul
ctf08 Windows - KerbeRoast running
Time remaining : 00:23:19
1
MoDa
ctf09 End Droid running
Time remaining : 02:27:30
3
Bigyls, goorst, Kamila
ctf10 Websocket - 0 protection running
Time remaining : 00:29:42
1
peanut
ctf11 waiting 0
ctf12 waiting 0
ctf13 Shared Objects Hijacking running
Time remaining : 00:06:23
1
Id3m
ctf14 Metasploitable 2 running
Time remaining : 00:48:21
1
zen1me12
ctf15 Apprenti-Scraper running
Time remaining : 02:48:14
1
raaphael273
ctf16 waiting 0
ctf17 Mr. Robot 1 running
Time remaining : 01:01:48
1
rHACK00n
ctf18 Windows - sAMAccountName spoofing running
Time remaining : 01:33:04
1
0xSpectra
ctf19 Docker - Talk through me running
Time remaining : 03:34:04
1
Neriss
ctf20 waiting 0
ctf21 LAMP security CTF5 running
Time remaining : 00:56:07
1
b4n3
ctf22 waiting 0
ctf23 BBQ Factory running
Time remaining : 06:00:25
1
siqox
ctf24 waiting 0
ctf25 waiting 0
ctf26 waiting 0
ctf27 waiting 0
ctf28 waiting 0
ctf29 waiting 0
ctf30 waiting 0
ctf31 waiting 0
ctf32 waiting 0
ctf33 waiting 0
ctf34 waiting 0
ctf35 waiting 0

CTF Results CTF Results

Pseudo Virtual Environnement Attackers count Time start Environnement compromised in
Ch3n4p4N SSH Agent Hijacking 1 2 March 2019 at 20:48 0h53
B34rD0g Hackademic RTB1 1 2 March 2019 at 20:27 1h46
- SamBox v1 1 2 March 2019 at 21:07 -
- Awky 0 2 March 2019 at 21:14 -
- /dev/random : Pipe 0 2 March 2019 at 20:10 -