influxdata / influxdata/influxdb-client-csharp

[Question] prevent injection

Open
#514 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
377
Forks
93
Avg merge
9m
Merged PRs (30d)
2

Description

i want prevent injection when read and wirte data

my read query is like this:
```
var query = $"from(bucket:\"{_bucketName}\") " +
$"|> {range[0]} " +
$"|> filter(fn: (r) => r[\"device_id\"] == \"{deviceId}\") " +
$"|> aggregateWindow(every: {range[1]}, fn: mean, createEmpty: false)" +
"|> pivot(rowKey:[\"_time\"], columnKey: [\"_field\"], valueColumn: \"_value\")";
```
user send `deviceId` to my API

also i use POCO for writing data, should i sanitize my data?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report provides application-side C# query construction and names no repository file, test, or entry point. Start by locating the client APIs involved in Flux queries and POCO writes, then define reproducible cases for untrusted deviceId input and document what safe behavior should be verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
databases, security
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.