Skip to content

System Center Pagination - #919

Open
nbeatty-gpa wants to merge 11 commits into
masterfrom
newPagination2
Open

System Center Pagination#919
nbeatty-gpa wants to merge 11 commits into
masterfrom
newPagination2

Conversation

@nbeatty-gpa

Copy link
Copy Markdown
Contributor

Adds pagination to:

  • ValueListGroupItem
  • MeterChannel components
  • SourceImpedances
  • AssetChannels
  • AssetGroup components
  • LineSegment
  • GroupUsers

@nbeatty-gpa
nbeatty-gpa force-pushed the newPagination2 branch 2 times, most recently from 1f02e61 to 2b4807b Compare August 7, 2026 20:35
@nbeatty-gpa
nbeatty-gpa marked this pull request as ready for review August 7, 2026 20:43
@nbeatty-gpa
nbeatty-gpa force-pushed the newPagination2 branch 2 times, most recently from ebf498a to 57d2bbc Compare August 14, 2026 13:11
Location.Name,
MeterAssetGroup.AssetGroupID
HAVING MeterAssetGroup.AssetGroupID = {{0}}
ORDER BY {postData.OrderBy} {(postData.Ascending ? "ASC" : "DESC")}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduces SQLInjection {postData.OrderBy}

AssetAssetGroup.AssetGroupID
HAVING AssetAssetGroup.AssetGroupID = {0}";
HAVING AssetAssetGroup.AssetGroupID = {{0}}
ORDER BY {postData.OrderBy} {(postData.Ascending ? "ASC" : "DESC")}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduces SQLInjection {postData.OrderBy}

SELECT *
FROM ChannelDetail
WHERE ID in ({string.Join(", ", connectedChannels.Select(channels => channels.ID))})
ORDER BY {postData.OrderBy} {(postData.Ascending ? "ASC" : "DESC")}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduces SQLInjection {postData.OrderBy}

{
string sql = $@"SELECT UserAccount.*, UserAccount.Name as AccountName
FROM SecurityGroupUserAccount JOIN UserAccount ON UserAccountID = UserAccount.ID WHERE SecurityGroupID = {{0}}
ORDER BY {postData.OrderBy} {(postData.Ascending ? "ASC" : "DESC")}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduces SQLInjection {postData.OrderBy}

@prestoncraw prestoncraw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didnt go through everything yet but theres multiple sql injections that were introduced.

@nbeatty-gpa

Copy link
Copy Markdown
Contributor Author

added whitelisting per this afternoon's conversation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants