Giter Club home page Giter Club logo

Comments (10)

hengfeiyang avatar hengfeiyang commented on June 16, 2024

Which API request was blocked, please give some detail.

from openobserve.

miemieYaho avatar miemieYaho commented on June 16, 2024

webUI
image
image
I am certain that this firewall will decode base64 and recognize it as SQL.

from openobserve.

miemieYaho avatar miemieYaho commented on June 16, 2024

image
image
I set ZO_UI_SQL_BASE64_ENABLED=true, and this WAF firewall will decode the Base64 and then intercept it.

from openobserve.

hengfeiyang avatar hengfeiyang commented on June 16, 2024

@miemieYaho i just fixed it, haven't make the release, do you use docker? then i can give you a test version.

from openobserve.

miemieYaho avatar miemieYaho commented on June 16, 2024

yes,i use docker

from openobserve.

hengfeiyang avatar hengfeiyang commented on June 16, 2024

Can you try this version:

public.ecr.aws/zinclabs/openobserve-dev:v0.10.6-rc1-f0cd361

with the ENV:

ZO_UI_SQL_BASE64_ENABLED = true

from openobserve.

miemieYaho avatar miemieYaho commented on June 16, 2024

This WAF firewall will inspect the entire request body. Even if it is simply base64 encoded, it will still be decoded and inspected.
image
image

from openobserve.

miemieYaho avatar miemieYaho commented on June 16, 2024

To prevent the WAF from decoding, the simplest method currently is to perform some obfuscation. For example, insert an 'a' every 5 characters in the base64 encoded string

from openobserve.

hengfeiyang avatar hengfeiyang commented on June 16, 2024
To prevent the WAF from decoding, the simplest method currently is to perform some obfuscation. For example, insert an 'a' every 5 characters in the base64 encoded string

This is a function, but i don't think this is a good solution for us, it is a hacking solution.

will keep track it.

from openobserve.

miemieYaho avatar miemieYaho commented on June 16, 2024

Then you can consider using symmetric encryption, with the key specified in an environment variable, such as AES
or change the request body like this(I am using this method to bypass the WAF):

{
    "table": "target_table",
    "where":"id = 123 and age > 2",
    "order" :"created_at desc"
}

from openobserve.

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.