Giter Site home page Giter Site logo

imcoder-blog's People

Contributors

jeffrey-deng avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

tt-52101

imcoder-blog's Issues

Change file name style

keep different file names the same length of characters,
Split an album folder into multiple albums for upload a lot of images in one album without degrading performance.

Develop the same photo to display in multiple albums

Sometimes I want to put the same photo warrior in a different album, but I just want to upload a source file to develop this requirement.
Also supports user-defined local configuration for some page layouts.

Login invalidation when opening the login page

As long as the login page is opened (not the login box), the login will be invalid, and it will be useless even if it is refreshed,
the "remember password" function will also be invalid, re-opening the browser will not automatically log in.

Update photo source file and remember passwords in multiple terminals simultaneously

If someone uploads a photo, there is a small error in the direction photo to replace the uploaded photo file, because he does not want to change the display position of the photo, then you need a function to update the image source file.

The switch that has been added to the strict login mode has been turned off by default. Although the user who is not the same IP is logged in, the token that the user remembered before will not be deleted. However, if the user uses the mobile phone to access the computer at the same time, the user wants both terminals to remember passwords, which require different terminals to remember the same token.

Develop these features~

Sensitive cookie without the `HttpOnly` flag set

Hi @Jeffrey-deng,

Thanks for sharing the repository and it's a nice one.

I noticed one issue - the program src/main/java/site/imcoder/blog/Interceptor/LoginRequiredInterceptor.java has the following code:

                            Cookie identifier_cookie = new Cookie("identifier", longUid);
                            identifier_cookie.setPath(cookie_path);
                            identifier_cookie.setSecure(cookie_secure);
                            identifier_cookie.setMaxAge(max_age); // max_age
                            Cookie credential_cookie = new Cookie("credential", token);
                            credential_cookie.setPath(cookie_path);
                            credential_cookie.setSecure(cookie_secure);
                            credential_cookie.setMaxAge(max_age); // max_age
                            response.addCookie(identifier_cookie);
                            response.addCookie(credential_cookie);

I think for a sensitive cookie like credentials, both the Secure flag and the HttpOnly flag shall be set to avoid XSS attacks through client side JavaScripts. Please consider to make the change.

Thanks,
@luchua-bc

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.