Altinn / Altinn/app-lib-dotnet

Instance can be accessed with wrong appname in the request URL

Open
#147 2 comments 0 reactions 0 assignees View on GitHub
kind/bug
Dominant language
C#
Stars
8
Forks
27
Avg merge
1h 21m
Merged PRs (30d)
7

Description

## Describe the bug
One can access an instance id or a data id with a wrong/different app name.

## To Reproduce
Steps to reproduce the behavior:
1. Login to AT21 and start an app instance of a deployed app (partydisplaytest)
2. Update the cookies in postman and create a new request of type: GET and wrong app name in the request URL
https://tdd.apps.at21.altinn.cloud/tdd/apptest/instances/50014516/5562e2e9-5a56-40db-8360-d77c681029e2
3. Send the request and the instance details are retrieved with wrong selflinks and dataLinks for the apps parameter

## Expected behavior
One cannot access any instance id or data id when the appname is wrong

## Additional info
app: tdd/partydisplaytest
Env: AT21

Contributor guide

Open the contributing guide

Research direction

Reproduce the GET request from Postman using the wrong app name in the URL, as described for AT21 and app tdd/partydisplaytest. Compare the returned instance details, selflinks, and dataLinks with the expected behavior: a wrong app name must not retrieve the instance or data.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.