当前位置:网站首页>HackTheBox-Gunship
HackTheBox-Gunship
2022-07-02 08:34:00 【galaxy3000】
List of articles
summary
HackTheBox Website CTF shooting range Web Related topics Gunship, Title address https://app.hackthebox.com/challenges/gunship, Main investigation AST Injected knowledge points .

subject
Title Overview
The title provides attachment download , After decompression, as shown in the figure 
After opening the program instance , Prompt to visit 138.68.142.134:32761, visit http://138.68.142.134:32761, See the following Web Interface 

Their thinking
Using browser plug-ins Wappalyzer View its components , Found as Node.js Developed applications 
see routes Under the index.js
const path = require('path');
const express = require('express');
const pug = require('pug');
const { unflatten } = require('flat');
const router = express.Router();
router.get('/', (req, res) => {
return res.sendFile(path.resolve('views/index.html'));
});
router.post('/api/submit', (req, res) => {
const { artist } = unflatten(req.body);
if (artist.name.includes('Haigh') || artist.name.includes('Westaway') || artist.name.includes('Gingell')) {
return res.json({
'response': pug.compile('span Hello #{user}, thank you for letting us know!')({ user: 'guest' })
});
} else {
return res.json({
'response': 'Please provide us with the full name of an existing member.'
});
}
});
module.exports = router;
see package.json Version corresponding to each component 
among pug:3.0.0 There is RCE Loophole , See https://github.com/pugjs/pug/issues/3312

stay index.js Can be seen in , Request for POST Mode submission , adopt req.body Receiving parameters .
Question answer
Use postman Send to get flag
边栏推荐
- Carsim-问题Failed to start Solver: PATH_ID_OBJ(X) was set to Y; no corresponding value of XXXXX?
- Carsim-实时仿真的动画同步问题
- Realization of basic function of sequence table
- Generate database documents with one click, which can be called swagger in the database industry
- cve_ 2019_ 0708_ bluekeep_ Rce vulnerability recurrence
- Longest isometric subsequence
- k8s入门:Helm 构建 MySQL
- Linked list classic interview questions (reverse the linked list, middle node, penultimate node, merge and split the linked list, and delete duplicate nodes)
- How to build the alliance chain? How much is the development of the alliance chain
- sqli-labs(POST类型注入)
猜你喜欢
随机推荐
Sparse matrix storage
Generate database documents with one click, which can be called swagger in the database industry
In depth understanding of prototype drawings
Summary of one question per day: String article (continuously updated)
Matlab - autres
Summary of one question per day: stack and queue (continuously updated)
Rotating linked list (illustration)
Introduction to anti interception technology of wechat domain name
实现双向链表(带傀儡节点)
Use the kaggle training model and download your own training model
旋转链表(图解说明)
【无标题】
链表经典面试题(反转链表,中间节点,倒数第k个节点,合并分割链表,删除重复节点)
16: 00 interview, came out at 16:08, the question is really too
Zipkin is easy to use
Longest isometric subsequence
顺序表基本功能函数的实现
STM32-新建工程(参考正点原子)
Matlab mathematical modeling tool
ICMP Protocol








