journal article·2025Open access

Towards Secure APIs: A Survey on RESTful API Vulnerability Detection

Fatima Tanveer, Faisal Iradat, Waseem Iqbal, Awais Ahmad

Computers, Materials & Continua· Volume 84· Issue 3

Abstract

RESTful APIs have been adopted as the standard way of developing web services, allowing for smooth communication between clients and servers. Their simplicity, scalability, and compatibility have made them crucial to modern web environments. However, the increased adoption of RESTful APIs has simultaneously exposed these interfaces to significant security threats that jeopardize the availability, confidentiality, and integrity of web services. This survey focuses exclusively on RESTful APIs, providing an in-depth perspective distinct from studies addressing other API types such as GraphQL or SOAP. We highlight concrete threats—such as injection attacks and insecure direct object references (IDOR)—to illustrate the evolving risk landscape. Our work systematically reviews state-of-the-art detection methods, including static code analysis and penetration testing, and proposes a novel taxonomy that categorizes vulnerabilities such as authentication and authorization issues. Unlike existing taxonomies focused on general web or network-level threats, our taxonomy emphasizes API-specific design flaws and operational dependencies, offering a more granular and actionable framework for RESTful API security. By critically assessing current detection methodologies and identifying key research gaps, we offer a structured framework that advances the understanding and mitigation of RESTful API vulnerabilities. Ultimately, this work aims to drive significant advancements in API security, thereby enhancing the resilience of web services against evolving cyber threats.
Source: openalex_inverted_index · Quality: baseline

Research context

OpenAlex topics: Web Application Security Vulnerabilities · Advanced Malware Detection Techniques · Network Security and Intrusion Detection

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

References (69)

Show source-provided references
1. Principles of securing RESTful API web services developed with python frameworks10.1088/1742-6596/2094/3/032016 ↗
2. Design and implementation of RESTFUL API based model for vulnerability detection and mitigation10.1088/1757-899X/1228/1/012010 ↗
3. Vulnerability-oriented Testing for RESTful APIs
4. Deep learning for software vulnerabilities detection using code metrics10.1109/ACCESS.2020.2988557 ↗
5. Using public vulnerabilities data to self-heal security issues in software systems
6. Traceable AI. 2023 state of API security report. 2023 [Internet]. [cited 2025 Jun 23]. Available from: https://www.traceable.ai/2023-state-of-api-security.
7. Salt Security. API security trends 2024: the growing threat landscape. 2024 [Internet]. [cited 2025 Jun 23]. Available from: https://salt.security/blog/api-security-trends-2024.
8. Open Web Application Security Project (OWASP). API security top 10–2023. 2023 [Internet]. [cited 2025 Jun 23]. Available from: https://owasp.org/www-project-api-security.
9. OWASP Foundation. OWASP API security top 10–2023. 2023 [Internet]. [cited 2025 Jun 23]. Available from: https://owasp.org/API-Security/editions/2023/en/0x00-header/.
10. Golmohammadi A, Zhang M, Arcuri A. Testing RESTful APIs: a survey. arXiv:2212.14604. 2022.10.1145/3617175 ↗
11. Automated test generation for REST APIs: no time to rest yet
12. Automatic detection of access control vulnerabilities via API specification processing10.21681/2311-3456-2022-1-49-65 ↗
13. NAUTILUS: automated RESTful API vulnerability detection
14. RESTlogic: detecting logic vulnerabilities in cloud REST APIs
15. Automated black-box testing of mass assignment vulnerabilities in RESTful APIs
16. Mining REST APIs for potential mass assignment vulnerabilities
17. Input validation vulnerabilities in web applications: systematic review, classification, and analysis of the current state-of-the-art10.1109/ACCESS.2023.3266385 ↗
18. Patching vulnerabilities with sanitization synthesis
19. Barlas E, Du X, Davis JC. Exploiting input sanitization for regex denial of service. arXiv:2303.01996. 2023.10.1145/3510003.3510047 ↗
20. Leveraging hardware probes and optimizations for accelerating fuzz testing of heterogeneous applications
21. Enhancing REST API Testing with NLP Techniques
22. A first look at security and privacy risks in the RapidAPI ecosystem
23. An in-depth analysis of IoT security requirements, challenges, and their countermeasures via software-defined security10.1109/JIOT.2020.2997651 ↗
24. Mousavi Z, Islam C, Babar MA, Abuadbba A, Moore K. Detecting misuse of security APIs: a systematic review. arXiv:2306.08869. 2024.10.1145/3735968 ↗
25. Acunetix. API Security risks and challenges; Acunetix web security report . 2024 [Internet]. [cited 2025 Jun 23]. Available from: https://www.acunetix.com/blog/articles/api-security-risks.
26. Rsnake. XSS cheat sheet. 2008 [Internet]. [cited 2025 Jun 23]. Available from: http://ha.ckers.org/xss.html.
27. HTML5 Security Team. HTML5 security cheat sheet [Internet]. [cited 2025 Jun 23]. Available from: http://html5sec.org/.
28. PortSwigger Web Security Team. Cross-site scripting (XSS) cheat sheet [Internet]. [cited 2025 Jun 23]. Available from: https://portswigger.net/web-security/cross-site-scripting/cheat-sheet.
29. XssPayloads. XSS payloads on X (Twitter) [Internet]. [cited 2025 Jun 23]. Available from: https://twitter.com/xsspayloads.
30. Kim M, Sinha S, Orso A. Adaptive REST API testing with reinforcement learning. arXiv:2309.04583. 2023.10.1109/ASE56229.2023.00218 ↗
31. Beyond REST: introducing APIF for comprehensive API vulnerability fuzzing
32. Morest: model-based RESTful API testing with execution feedback
33. Cross-site scripting attacks in social network APIs
34. Project G. Stored cross-site scripting (XSS) vulnerability in REST resources API. 2024 [Internet]. [cited 2025 Jun 23]. Available from: https://github.com/geoserver/geoserver/security/advisories/GHSA-fh7p-5f6g-vj2w.
35. A critical cybersecurity analysis and future research directions for the internet of things: a comprehensive review10.3390/s23084117 ↗
36. Securing web apps: analysis to understand common vulnerabilities, attack scenarios, and protective measures
37. Dias T, Maia E, Praça I. FuzzTheREST: an intelligent automated black-box RESTful API fuzzer. arXiv:2407.14361. 2024.10.1007/978-3-031-82073-1_16 ↗
38. AI edition—innovation and adoption challenges
39. The art of API design: best practices for modern software development
40. Cost benefit analysis of incorporating security and evaluation of its effects on various phases of agile software development
41. Efficient deep features learning for vulnerability detection using character n-gram embedding
42. iKern: advanced intrusion detection and prevention at the kernel level using eBPF10.3390/technologies12080122 ↗
43. Vulnerability Lab. Technical attack sheet for cross-site penetration tests [Internet]. [cited 2025 Jun 23]. Available from: http://www.vulnerability-lab.com/resources/documents/531.txt.
44. Yerushalmi S. GraphQL vulnerabilities and common attacks: what you need to know; imperva blog [Internet]. 2023 [cited 2025 Jun 23]. Available from: https://www.imperva.com/blog/graphql-vulnerabilities-common-attacks/.
45. Amareen S, Soto Dector O, Dado A, Bosu A. GraphQL adoption and challenges: community-driven insights from stackoverflow discussions. arXiv:2408.08363. 2024.
46. Few-shot graph classification on cross-site scripting attacks detection10.1016/j.cose.2024.103749 ↗
47. Kim M, Sinha S, Orso A. LlamaRestTest: effective REST API testing with small language models. arXiv:2501.08598. 2025.10.1145/3715737 ↗
48. Unlocking deeper understanding: leveraging explainable AI for API anomaly detection insights
49. Technologies A. API security impact study 2025: the costs of API attacks in 4 APAC Countries
50. akamai technologies [Internet]. 2025 [cited 2025 Jun 23]. Available from: https://www.akamai.com.
51. Do RESTful API design rules have an impact on the understandability of web APIs?10.1007/s10664-023-10367-y ↗
52. Leveraging large language models to improve REST API testing
53. WENDIGO: deep reinforcement learning for denial-of-service query discovery in GraphQL
54. Automated broken object-level authorization attack detection in REST APIs through OpenAPI to colored petri nets transformation10.1007/s10207-024-00970-5 ↗
55. Wolf T, Debut L, Sanh V, Chaumond J, Delangue C, Moi A, et al. HuggingFace’s transformers: state-of-the-art natural language processing. arXiv:191003771. 2019.10.18653/v1/2020.emnlp-demos.6 ↗
56. The stanford CoreNLP natural language processing toolkit
57. RESTful API automated test case generation
58. RESTler: stateful REST API fuzzing
59. Windows malware detection using machine learning and TF-IDF enriched API calls information
60. Dezfouli MP. Automated real-time machine learning for IoT for manufacturing a cloud architecture and API; 2020. [cited 2025 Jun 23]. Available from: https://hdl.handle.net/1853/62335.
61. Vinzenz N, Oka DK. Processing fuzz testing results into an evidence report. Warrendale, PA, USA: SAE; 2023. Paper #2023-01–0039. doi:10.4271/2023-01-0039.10.4271/2023-01-0039 ↗
62. Formal-Guided fuzz testing: targeting security assurance from specification to implementation for 5G and beyond10.1109/ACCESS.2024.3369613 ↗
63. Systematic exploration of fuzzing in IoT: techniques, vulnerabilities, and open challenges10.1007/s11227-025-07371-y ↗
64. MINER: a hybrid data-driven approach for rEST API fuzzing
65. EDEFuzz: A web API fuzzer for excessive data exposures
66. KubeFuzzer: automating RESTful API vulnerability detection in kubernetes
67. Behavior abstraction adequacy criteria for API call protocol testing10.1002/stvr.1593 ↗
68. Neural AMR: sequence-to-sequence models for parsing and generation
69. BART: denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension