Independent learning for product cybersecurity professionals
SearchCommentary
Learning library / Practical projectsCSL-403 · Practical projects

Review an insecure application design

Try a scenario, make decisions, then compare with a worked answer.

Review a design as a set of interacting controls.

What you will learn

  • Analyse weaknesses as interacting authority and access paths.
  • Propose changes that address causes rather than appearances.
  • Define evidence demonstrating each improved boundary.

The scenario

The gateway has a default administrative password, an unused remote shell, a device credential with access to all customers and a dashboard that hides administrative buttons from ordinary users.

Your task

  1. Identify four weaknesses and their consequences.
  2. Propose a design change for each.
  3. Separate interface changes from enforcement changes.
  4. Describe how you would verify each improvement.
Read the worked answer
  • Replace the shared default credential with a controlled initial setup and appropriate account management.
  • Remove the unused remote shell, or constrain it if a justified maintenance need exists.
  • Restrict each device credential to its required actions and data scope.
  • Enforce administrative permissions on the server. Hidden buttons alone do not prevent direct requests.

Verify rejected requests, initial setup behaviour, absence of unnecessary services and cross-customer access restrictions using defined test accounts.

Make the review concrete

The starting gateway has a common default administrator password, an unused remote shell, a credential spanning all customers and a dashboard that hides administrative buttons from ordinary users. Assume the device is installed on a customer network and forwards readings to a hosted API. Draw the access and authority granted by each feature.

For every finding, record the affected asset, plausible path, consequence and assumptions requiring confirmation. Spend about 30–45 minutes reviewing both normal and support operation. Avoid assigning a universal severity solely from the feature’s name; exposure and resulting authority matter.

Design corrections at the enforcement point

Replace the common initial credential with a controlled setup and identity process. Remove the unused remote shell unless a justified service need exists; if it is needed, define constrained access, permissions and maintenance control. Restrict the gateway credential to its assigned reporting function and customer scope.

Enforce administrative authority in the service receiving the operation. The interface can help users understand their role, but it must not be the only boundary. Include enrolment, token creation and recovery in the review so a broad support override does not recreate the original privilege. Define who owns each correction and how existing installations migrate.

Demonstrate the redesigned behaviour

For initial setup, show that unauthorised access using the former common credential fails and legitimate onboarding still works. For services, verify the intended reachable interfaces from the relevant network positions. For gateway authority, attempt another customer’s reporting and administrative operations using its credential. For roles, test direct API requests with permitted and denied identities.

A strong answer considers combinations: a stolen gateway credential could misuse a broad cloud permission even if the local password is corrected. Retain a revised architecture sketch, requirements and results showing unchanged protected state after rejection. Review recovery and support tasks to confirm that secure operation remains practical.

Apply the ideas

The team removes the shell and changes the administrator password but keeps the credential with authority over all customers. Explain the residual path and specify a correction with two tests.

Compare your approach

Compromise or disclosure of the gateway credential can still cross customer boundaries through the cloud API. Restrict that identity to the required actions and assigned customer or device resources, and enforce the scope at the receiving service. Test valid reporting for the assigned sensor and rejected reporting or configuration for another customer. Check provisioning and credential replacement to ensure the narrowed scope is preserved; correcting local access alone does not demonstrate cloud containment.

Review your work

  • Does each correction address the receiving service or authority boundary?
  • Have combinations of weaknesses been considered?
  • Do migration and recovery preserve the redesigned restrictions?

Keep this output: Four finding records with corrected design decisions and verification cases.

Continue learning