influxdata / influxdata/influxdb-client-csharp
[Question] prevent injection
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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