Git Product home page Git Product logo

filemanager's People

Contributors

chenhg5 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

filemanager's Issues

删除文件错误

屏幕截图 2021-03-05 153507

右侧删除按钮,删除时:

http://127.0.0.1:8199/admin/fm/def/deleteundefined

查看代码:


$('.grid-row-delete').click(function () {
--
DeletePost($(this).data('id'), $(this).data('param'))});
  




function DeletePost(id, url_param) {
--
  | swal({
  | title: "你确定要删除吗?",
  | type: "warning",
  | showCancelButton: true,
  | confirmButtonColor: "#DD6B55",
  | confirmButtonText: "确定",
  | closeOnConfirm: false,
  | cancelButtonText: "取消",
  | },
  | function () {
  | $.ajax({
  | method: 'post',
  | url: "/admin/fm/def/delete" + url_param,
  | data: {
  | id: id
  | },


应该是 url_param 没有正确抓取到 参数 url_param

Database is locked

Can't start application

GO111MODULE=on go run main.go
GoAdmin is now running.
Running in "debug" mode. Switch to "release" mode in production.

panic: database is locked

goroutine 1 [running]:
github.com/GoAdminGroup/go-admin/plugins/admin/models.SiteModel.Init(0x117241c, 0xc, 0x162a660, 0xc0002040e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /root/go/pkg/mod/github.com/!go!admin!group/[email protected]/plugins/admin/models/site.go:60 +0x505
github.com/GoAdminGroup/go-admin/engine.(*Engine).Use(0xc000467480, 0x11571e0, 0xc000492140, 0xc0004cdb68, 0x1)
        /root/go/pkg/mod/github.com/!go!admin!group/[email protected]/engine/engine.go:77 +0x2e6
main.main()
        /test/filemanager/example/main.go:63 +0x785
exit status 2

arbitrary file upload

Users can upload files to their own designated directory, which will cause security problems
image

Uploading to these files in Linux will cause RCE:

~/.ssh/authorized_keys
/etc/cron.d/*
/var/spool/cron/*
/etc/crontab

POC:
image

file in /etc
image

do not support postgresql

ERROR [email protected]/installation.go:193 filemanager create database table error: Unsupported driver name: postgresql
github.com/GoAdminGroup/go-admin/modules/logger.Error
/home/hoo/goprojs/pkg/mod/github.com/!go!admin!group/[email protected]/modules/logger/logger.go:285
github.com/GoAdminGroup/filemanager.(*FileManager).GetSettingPage.func1.6
/home/hoo/goprojs/pkg/mod/github.com/!go!admin!group/[email protected]/installation.go:193
github.com/GoAdminGroup/go-admin/plugins/admin/modules/table.(*DefaultTable).InsertData

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.