مضى على الشبكة و يوم من العطاء.
  • تحذير: يجب على كل روّاد الشبكة تشغيل برامج الاختراق داخل الأنظمة الوهمية وهي بهدف التعلم وحماية الأعضاء والتوعية بها

SQL injection in in grafana

  • بادئ الموضوع بادئ الموضوع BEN10
  • تاريخ البدء تاريخ البدء
  • الوسوم الوسوم
    sql

BEN10

./عضو نشيط
.:: كاتب تقني ::.

السمعة:

بسم الله الرحمن الرحيم
الصلاة والسلام على النبي المجاهد الشهيد


جرافانا هو برنامج بيستخدم علشان يعرض البيانات بشكل مرئي زي الجرافيك والرسوم البيانية. بيأخد البيانات من مصادر مختلفة زي قواعد البيانات أو الخدمات زي Prometheus أو InfluxDB وبيعرضها على dashboard بشكل واضح وسهل الفهم ممكن تستخدمه في مراقبة النظام وتحليل البيانات وهو كمان بيدعم إنك تعمل تقارير و alerts لو في مشكلة حصلت.

بالصدفه أو لما روحت لل endpoint دي https://telescope.dyson.com/api/ds/query?ds_type=influxdb&requestId=Q103

وأنا بشوف ال request لقيته بالشكل دا:

كود:
Accept: application/json, text/plain, */*[/SIZE][/CENTER][/SIZE][/CENTER][/SIZE][/CENTER]
[SIZE=5][CENTER][SIZE=5][CENTER][SIZE=5][CENTER]X-Panel-Plugin-Id: stat
X-Dashboard-Uid: fdr4hmbluu6tca
X-Datasource-Uid: cdr4gxqpo9urkf
Sec-Ch-Ua-Platform: "Windows"
Origin: https://telescope.dyson.com
Referer: https://telescope.dyson.com/d/fdr4hmbluu6tca/ambient-data?orgId=60

{
  "queries": [
    {
      "dataset": "iox",
      "datasource": {
        "type": "influxdb",
        "uid": "cdr4gxqpo9urkf"
      },
      "editorMode": "builder",
      "format": "time_series",
      "rawSql": "SELECT \"pressure\", \"time\" FROM \"barometric_pressure\" WHERE \"time\" >= $__timeFrom AND \"time\" <= $__timeTo AND \"location\" = 'SJPS'",
      "refId": "A",
      "sql": {
        "columns": [
          {
            "parameters": [
              {
                "name": "pressure",
                "type": "functionParameter"
              }
            ],
            "type": "function"
          },
          {
            "parameters": [
              {
                "name": "time",
                "type": "functionParameter"
              }
            ],
            "type": "function"
          }
        ],
        "groupBy": [
          {
            "property": {
              "type": "string"
            },
            "type": "groupBy"
          }
        ],
        "whereJsonTree": {
          "children1": [
            {
              "id": "8a888bb8-4567-489a-bcde-f190920b2138",
              "properties": {
                "field": "location",
                "fieldSrc": "field",
                "operator": "equal",
                "value": ["SJPS"],
                "valueError": [null],
                "valueSrc": ["value"],
                "valueType": ["text"]
              },
              "type": "rule"
            }
          ],
          "id": "bb888ab8-0123-4456-b89a-b19092005bf1",
          "type": "group"
        },
        "whereString": "location = 'SJPS'"
      },
      "table": "barometric_pressure",
      "adhocFilters": [],
      "query": "",
      "alias": "",
      "limit": "",
      "measurement": "",
      "policy": "",
      "slimit": "",
      "tz": "",
      "datasourceId": 155,
      "intervalMs": 1800000,
      "maxDataPoints": 276
    }
  ],
  "from": "1729340992945",
  "to": "1729945792945"
}



عدلت في rowsql

1736212568001.webp


ظهر عندي كل tables, بس الحمد لله خدت عليها duplicate

1736212994709.webp


 
التعديل الأخير بواسطة المشرف:
بسم الله الرحمن الرحيم الصلاه والسلام علي النبي المجاهد الشهيد


جرافانا هو برنامج بيستخدم علشان يعرض البيانات بشكل مرئي زي الجرافيك والرسوم البيانية بياخد البيانات من مصادر مختلفة زي قواعد البيانات او الخدمات زي Prometheus او InfluxDB وبيعرضها على dashboard بشكل واضح وسهل الفهم ممكن تستخدمه في مراقبة النظام وتحليل البيانات وهو كمان بيدعم انك تعمل تقارير و alerts لو في مشكلة حصلت



بالصدفه او لما روحت لل endpoint دي https://telescope.dyson.com/api/ds/query?ds_type=influxdb&requestId=Q103

وانا بشوف ال request لقيته بالشكل دا

كود:
Accept: application/json, text/plain, */*
X-Panel-Plugin-Id: stat
X-Dashboard-Uid: fdr4hmbluu6tca
X-Datasource-Uid: cdr4gxqpo9urkf
Sec-Ch-Ua-Platform: "Windows"
Origin: https://telescope.dyson.com
Referer: https://telescope.dyson.com/d/fdr4hmbluu6tca/ambient-data?orgId=60

{
  "queries": [
    {
      "dataset": "iox",
      "datasource": {
        "type": "influxdb",
        "uid": "cdr4gxqpo9urkf"
      },
      "editorMode": "builder",
      "format": "time_series",
      "rawSql": "SELECT \"pressure\", \"time\" FROM \"barometric_pressure\" WHERE \"time\" >= $__timeFrom AND \"time\" <= $__timeTo AND \"location\" = 'SJPS'",
      "refId": "A",
      "sql": {
        "columns": [
          {
            "parameters": [
              {
                "name": "pressure",
                "type": "functionParameter"
              }
            ],
            "type": "function"
          },
          {
            "parameters": [
              {
                "name": "time",
                "type": "functionParameter"
              }
            ],
            "type": "function"
          }
        ],
        "groupBy": [
          {
            "property": {
              "type": "string"
            },
            "type": "groupBy"
          }
        ],
        "whereJsonTree": {
          "children1": [
            {
              "id": "8a888bb8-4567-489a-bcde-f190920b2138",
              "properties": {
                "field": "location",
                "fieldSrc": "field",
                "operator": "equal",
                "value": ["SJPS"],
                "valueError": [null],
                "valueSrc": ["value"],
                "valueType": ["text"]
              },
              "type": "rule"
            }
          ],
          "id": "bb888ab8-0123-4456-b89a-b19092005bf1",
          "type": "group"
        },
        "whereString": "location = 'SJPS'"
      },
      "table": "barometric_pressure",
      "adhocFilters": [],
      "query": "",
      "alias": "",
      "limit": "",
      "measurement": "",
      "policy": "",
      "slimit": "",
      "tz": "",
      "datasourceId": 155,
      "intervalMs": 1800000,
      "maxDataPoints": 276
    }
  ],
  "from": "1729340992945",
  "to": "1729945792945"
}

عدلت في rowsql
مشاهدة المرفق 16026
ظهر عندي كل tables

بس الحمد لله خدت عليها duplicate
مشاهدة المرفق 16027
بالتوفيق يا صديقي بالمرات القادمه :love: 🔥
 
  • Love
التفاعلات: BEN10
انصحك انك لا تستسلم مع اهدافك.
 
  • Love
التفاعلات: BEN10

آخر المشاركات

فانوس

رمضان
عودة
أعلى