Skip to content

fix: the project dashboard component fetches project... in... - #1910

Closed
anupamme wants to merge 1 commit into
openforis:mainfrom
anupamme:fix-repo-collect-earth-online-fix-idor-get-project-by-id-authorization
Closed

fix: the project dashboard component fetches project... in...#1910
anupamme wants to merge 1 commit into
openforis:mainfrom
anupamme:fix-repo-collect-earth-online-fix-idor-get-project-by-id-authorization

Conversation

@anupamme

Copy link
Copy Markdown

Summary

Fix high severity security issue in src/js/projectDashboard.jsx.

Vulnerability

Field Value
ID V-001
Severity HIGH
Scanner multi_agent_ai
Rule V-001
File src/js/projectDashboard.jsx:57
Assessment Likely exploitable
Chain Complexity 4-step

Description: The project dashboard component fetches project data using sequential integer project IDs without visible server-side authorization checks. The client-side code directly interpolates projectId into API URLs, allowing attackers to enumerate and access all projects in the system. Similar patterns exist for institution imagery and project statistics endpoints.

Evidence

Exploitation scenario: Authenticated attacker increments projectId parameter in /get-project-by-id, /get-institution-imagery, and /get-project-stats endpoints to enumerate and access all project data.

Scanner confirmation: multi_agent_ai rule V-001 flagged this pattern.

Production code: This file is in the production codebase, not test-only code.

Threat Model Context

This is a web application - XSS and injection vulnerabilities can affect end users.

Changes

  • src/clj/collect_earth_online/db/projects.clj

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
@a-luz a-luz closed this Jul 27, 2026
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