Advisory on Securing Web Applications and APIs
1 December 2026
This advisory is intended for developers of web applications and APIs, both in-house teams and third-party vendors. It sets out common weaknesses that may be exploited by threat actors, along with recommended measures to adopt a security-by-design approach throughout the development and operational lifecycle, protecting organisational systems, sensitive information and downstream customers.
Background
The Cyber Security Agency of Singapore (CSA) has observed a recent increase in data breaches, some of which have been linked to vulnerabilities in web applications and Application Programming Interfaces (APIs). Organisations increasingly rely on web applications and APIs to deliver digital services, exchange data and integrate with third-party platforms. These technologies improve connectivity and operational efficiency, but if they are designed, developed or implemented with weaknesses, they can be an attack vector used to compromise various systems, resulting in data breaches. Such incidents often do not need sophisticated techniques. Threat actors commonly exploit:
API endpoints that return information without checking whether the requester is authorised to access it
Unauthenticated or forgotten endpoints that remain publicly accessible
Missing rate limits, which allow bulk data harvesting through legitimate application functions
Exposed or hardcoded credentials
Compromised third-party integrations
As web applications and APIs often link multiple organisations, platforms and service providers, a single vulnerable application can expose the information of many downstream customers/users, even those whose own systems have not been directly compromised. These risks can be compounded when organisations engage third-party vendors to develop, host or maintain their web applications and APIs. Inadequate security requirements, insufficient testing and limited oversight of vendor-developed solutions can introduce vulnerabilities or leave them undetected.
Aim
This advisory is intended for developers of web applications and APIs, both in-house teams and third-party vendors. It sets out common weaknesses that may be exploited by threat actors, along with recommended measures to adopt a security-by-design approach throughout the development and operational lifecycle, protecting organisational systems, sensitive information and downstream customers.
Key Areas of Risk
Threat actors may exploit vulnerabilities in web applications and APIs to compromise organisational systems and sensitive information. Common risks include:
Broken Authentication and Authorisation
· Weak authentication mechanisms or inadequate access controls may allow threat actors to impersonate legitimate users, bypass access restrictions or access information belonging to other customers.
Injection Attacks and Inadequate Input Validation
· Web applications and APIs that fail to properly validate or process user-supplied inputs may be susceptible to attacks such as SQL injection, cross-site scripting (XSS) and command injection.
· Successful exploitation may enable threat actors to retrieve sensitive information, manipulate application data or execute unauthorised operations.
Insecure Configurations and Exposed Credentials
· Misconfigured applications, publicly accessible administrative interfaces, exposed API keys and hardcoded credentials may provide threat actors with opportunities to gain unauthorised access to systems.
· Insecure credential management such as reusing credentials across multiple accounts may have far-reaching impact from just a single compromised credential.
Insecure Third-Party Components and Integrations
· Applications incorporating vulnerable software libraries, outdated dependencies or inadequately secured third-party APIs may expose organisations to software supply chain risks.
· Compromised external services or dependencies may also introduce vulnerabilities into otherwise legitimate applications.
Insufficient Security Testing and Monitoring
· Web applications and APIs that are not regularly assessed, updated or monitored may contain exploitable vulnerabilities that remain undetected.
· Inadequate logging and monitoring may prevent the timely identification of suspicious activities, including unauthorised data retrieval and abuse of legitimate API access.
Recommended Measures
Organisations should adopt a defence-in-depth approach to securing web applications and APIs throughout their development, deployment and maintenance. This includes establishing appropriate security requirements for internally developed applications and those developed or managed by third-party vendors. The following technical measures are recommended.
1. Adopt Secure Development Practices for Web Applications and APIs
Organisations should incorporate cybersecurity considerations from the initial design phase and implement appropriate controls throughout the software development lifecycle.
a. Implement Security-by-Design Principles
· Define security requirements during application design, including authentication, authorisation, data protection and access restrictions.
· Conduct threat modelling to identify potential attack vectors, particularly those that could expose downstream customers' information or compromise interconnected systems.
· Adopt established secure development frameworks, such as the NIST Secure Software Development Framework (SSDF), and use the OWASP API Security Top 10 as a reference when assessing application security risks.
b. Enforce Strong Authentication and Authorisation
· Implement secure authentication mechanisms, such as OAuth 2.0 with OpenID Connect (OIDC), where appropriate, and multi-factor authentication (MFA).
· Enforce server-side authorisation checks for every request.
· Apply the principle of least privilege to users, service accounts and API consumers, ensuring that access is restricted to only the resources necessary for their intended functions.
· For multi-tenant applications, implement tenant-specific authorisation controls to prevent users from accessing information belonging to other customers through manipulation of API parameters or resource identifiers.
c. Validate Inputs and Secure Application Outputs
· Implement server-side input validation using defined schemas, expected data types, permitted values and length restrictions.
· Use parameterised queries and secure coding techniques to prevent SQL injection and other injection vulnerabilities.
· Apply context-appropriate output encoding to mitigate XSS vulnerabilities in web applications.
· Restrict API responses to the minimum information necessary and prevent sensitive information from being exposed through error messages, debugging interfaces or application logs.
d. Secure Application Sessions and API Credentials
· Implement secure session management, including appropriate session expiration, token revocation and cookie security attributes such as Secure, HttpOnly and SameSite, where applicable.
· Store API keys, access tokens and other credentials in secure secrets management solutions rather than embedding them in source code or client-side applications.
· Implement credential rotation and revocation mechanisms, particularly for credentials used by third-party integrations.
· Avoid sharing credentials across applications, customers or environments to limit the potential impact of credential compromise.
e. Restrict Exposure of Applications and APIs.
· Ensure that only necessary application services and API endpoints are publicly accessible.
· Restrict administrative interfaces, development environments and internal APIs through network segmentation, private connectivity or appropriate access controls.
· Disable unused API endpoints, unnecessary application features and default accounts.
· Maintain an inventory of deployed applications and APIs, including their owners, intended consumers and access permissions.
f. Integrate Security Testing into Development Pipelines
· Incorporate security testing into the different phases of the Continuous Integration/Continuous Deployment (CI/CD) pipelines.
· Automate security checks to identify vulnerabilities introduced through code changes, third-party libraries or software dependencies.
· Establish security acceptance criteria to prevent the deployment of applications containing unresolved critical vulnerabilities.
g. Conduct Application and API Security Assessments
· Perform penetration testing before deploying critical applications and APIs into production and following significant changes to their functionality or security architecture.
· Test for common vulnerabilities, including broken authentication, injection attacks, insecure configurations and excessive data exposure.
· Verify that security controls cannot be bypassed through direct API requests or manipulation of client-side parameters.
h. Maintain Secure Software Dependencies
· Maintain an inventory of third-party libraries, frameworks and software components used by web applications and APIs.
· Regularly assess dependencies for known vulnerabilities and apply security patches or updates promptly.
· Validate software packages and updates obtained from external sources before incorporating them into production environments.
i. Establish Vulnerability Remediation Procedures
· Prioritise vulnerabilities based on severity, exploitability, exposure and potential impact on downstream customers.
· Establish clear remediation timelines and responsibilities for internally developed and vendor-developed applications.
· Conduct verification testing following remediation to ensure that identified vulnerabilities have been adequately addressed.
2. Strengthen Oversight of Third-Party Developed Applications and APIs
Organisations engaging third-party vendors to develop, host or maintain web applications and APIs should establish appropriate security governance and oversight mechanisms.
a. Establish Security Requirements for Vendors
· Incorporate explicit cybersecurity requirements into procurement specifications and development agreements.
· These should cover secure coding practices, authentication and authorisation, vulnerability testing, credential management, security patching and incident reporting obligations.
b. Verify Security Before Deployment
· Require vendors to provide evidence of security testing and remediation of identified vulnerabilities before applications and APIs are deployed into production.
c. Least Privilege Access for Vendors
· Apply least privilege access controls to vendor accounts and service credentials. Use dedicated accounts, enforce MFA for privileged access and promptly revoke access when no longer required.
d. Prompt Notification of Security Incidents
· Require vendors to promptly notify the organisation of vulnerabilities or security incidents that could affect their applications, APIs or downstream customers.
3. Implement Continuous Monitoring and Incident Response Capabilities
Organisations should establish monitoring and incident response capabilities to detect and contain cybersecurity incidents affecting web applications and APIs.
a. Monitor Application and API Activities
· Maintain centralised security logs capturing authentication attempts, access control failures, privileged operations and API requests.
· Establish monitoring and alerting mechanisms to identify anomalous behaviours, such as repeated authentication failures or attempts to access unauthorised customer records.
b. Establish Incident Containment Procedures
· Develop procedures to promptly revoke compromised credentials, disable affected API endpoints, restrict unauthorised access and isolate compromised applications or integrations.
c. Assess Downstream Impact
· Maintain visibility over application dependencies, customer integrations and data flows to facilitate identification of affected customers following a compromise.
d. Coordinate Incident Response with Vendors and Customers
· Establish clear incident reporting and escalation procedures with third-party vendors.
· If downstream customers were affected, coordinate appropriate notifications and remediation measures to minimise further exposure or disruption.
Conclusion
As web applications and APIs become increasingly integral to digital services and interconnected systems, vulnerabilities in their design, development or implementation may have far-reaching consequences. A compromise of an upstream application or API could expose sensitive information, disrupt shared services or affect multiple downstream customers, even where their own systems have not been directly compromised.
Organisations should adopt a proactive, security-by-design approach to developing, deploying and maintaining web applications and APIs, regardless of whether these are developed internally or by third-party vendors. By implementing robust authentication and authorisation controls, conducting regular security testing, securing application configurations and maintaining appropriate oversight of third-party development, organisations can reduce their exposure to cybersecurity threats and better safeguard the downstream customers who rely on their services.
References
Organisations may refer to the following resources for further technical guidance:
OWASP[1] Top 10:2025
OWASP API Security Top 10 (2023)
OWASP Application Security Verification Standard (ASVS)
NIST Secure Software Development Framework (SSDF)
OWASP Cheat Sheet Series – Secure Development Guidance
[1] Open Worldwide Application Security Project (OWASP)
