Giter Club home page Giter Club logo

Comments (4)

chicpro avatar chicpro commented on August 15, 2024

union 을 허용하지 않도록 한 것은 blind sql injection 때문입니다.
blind sql injection 은 mysql_real_escape_string 으로는 대처할 수가 없습니다.

from gnuboard5.

dael avatar dael commented on August 15, 2024

이미 DB 스키마가 공개되어있는 오픈소스 프로젝트인 그누보드에서 blind injection을 막는다는게 의미가 없어보입니다.
모든 사용자 입력 데이터들을 이스케이프 하는것이 맞겠지만 현재구조로서는 힘들어 보이므로
safety 데이터가 아닌 데이터들에 대해서만 처리하는게 좋지 않을까하는 의견입니다.
현재 방법으로는 정상적인 요청이 필터링되는 문제점이 있습니다.

from gnuboard5.

chicpro avatar chicpro commented on August 15, 2024

kisa의 요청에 의해 보안 패치된 부분입니다.
자료가 필터링되는 부분에 대해서는 인지하고 있지만 각자 수정하신 후 사용하시는 방법 밖에 없습니다.

from gnuboard5.

lansi951 avatar lansi951 commented on August 15, 2024

저도 지금 이 버그를 발견했네요
그누보드5의 sql_query 함수의
$sql = preg_replace("#^select.*from.*[\s\(]+union[\s\)]+.*#i ", "select 1", $sql);
$sql = preg_replace("#^select.*from.*where.*?information_schema?.*#i", "select 1", $sql);
이 부분을 복사해서 대체했더니 정상 작동합니다
정규식이 문제인 것 같습니다
그누5에서 사용하는 걸 그대로 사용한 것이니 4에서 변경이 됐으면 좋겠습니다
@dael @chicpro

from gnuboard5.

Related Issues (20)

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.