Research Article

A Hybrid Machine Learning Model to Detect Reflected XSS Attack

Volume: 9 Number: 3 July 30, 2021
EN

A Hybrid Machine Learning Model to Detect Reflected XSS Attack

Abstract

Since web technologies are getting more advanced with longer codes, the number of vulnerabilities has increased considerably. Cross-site scripting (XSS) attacks are one of the most common attacks that use vulnerabilities in web applications. There are three types of cross-site scripting attacks namely, reflected, stored, and DOM-based attacks. Reflected XSS attacks are the most common type that is usually implemented by injecting a malicious code into the URL and then sending the URL to the targeted system by using phishing methods, which is a significant threat for recent web applications. Our motivation is the lack of a high performance detection method of reflected XSS attacks with high accuracy. In this paper, we propose a hybrid machine learning model to detect vulnerabilities related to reflected XSS attacks for a given URL of a website. Our model uses a scanner to discover vulnerabilities in a web site and convolutional neural networks to predict the most common vulnerabilities that may be used for reflected XSS attacks, which makes the proposed model hybrid. We analyzed the model experimentally. Analyses results show that the proposed model is able to detect vulnerable attack surfaces with 99 % accuracy.

Keywords

References

  1. [1] “Web Applications vulnerabilities and threats: statistics for 2019.” [Online]. Available: https://www.ptsecurity.com/ww en/analytics/web-vulnerabilities-2020/
  2. [2] S. Gupta and B. B. Gupta, “Cross-Site Scripting (XSS) attacks and defense mechanisms: classification and state-of-the-art,” International Journal of System Assurance Engineering and Management, vol. 8, no. S1, pp. 512–530, Jan. 2017. [Online]. Available: http://link.springer.com/10.1007/s13198-015-0376-0
  3. [3] “OWASP Top Ten Web Application Security Risks j OWASP.” [Online]. Available: https://owasp.org/www-project-top-ten/
  4. [4] V. Nithya, S. L. Pandian, and C. Malarvizhi, “A Survey on Detection and Prevention of Cross-Site Scripting Attack,” International Journal of Security and Its Applications, vol. 9, no. 3, pp. 139–152, Mar. 2015.
  5. [5] U. Sarmah, D. Bhattacharyya, and J. Kalita, “A survey of detection methods for XSS attacks,” Journal of Network and Computer Applications, vol. 118, pp. 113–143, Sep. 2018. [Online]. Available: https://linkinghub.elsevier.com/retrieve/pii/S1084804518302042
  6. [6] M. Liu, B. Zhang, W. Chen, and X. Zhang, “A Survey of Exploitation and Detection Methods of XSS Vulnerabilities,” IEEE Access, vol. 7, pp. 182 004–182 016, 2019. [Online]. Available:https://ieeexplore.ieee.org/document/8935148/
  7. [7] G. E. Rodr´ıguez, J. G. Torres, P. Flores, and D. E. Benavides, “Crosssite scripting (XSS) attacks and mitigation: A survey,” Computer Networks, vol. 166, p. 106960, Jan. 2020. [Online]. Available: https://linkinghub.elsevier.com/retrieve/pii/S1389128619311247
  8. [8] E. Gal´an, A. Alcaide, A. Orfila, and J. Blasco, “A multi-agent scanner to detect stored-xss vulnerabilities,” in 2010 International Conference for Internet Technology and Secured Transactions, 2010, pp. 1–6.

Details

Primary Language

English

Subjects

Artificial Intelligence, Computer Software

Journal Section

Research Article

Publication Date

July 30, 2021

Submission Date

April 25, 2021

Acceptance Date

July 27, 2021

Published in Issue

Year 2021 Volume: 9 Number: 3

APA
Buz, B., Gülçiçek, B., & Bahtiyar, Ş. (2021). A Hybrid Machine Learning Model to Detect Reflected XSS Attack. Balkan Journal of Electrical and Computer Engineering, 9(3), 235-241. https://doi.org/10.17694/bajece.927417
AMA
1.Buz B, Gülçiçek B, Bahtiyar Ş. A Hybrid Machine Learning Model to Detect Reflected XSS Attack. Balkan Journal of Electrical and Computer Engineering. 2021;9(3):235-241. doi:10.17694/bajece.927417
Chicago
Buz, Beraat, Berke Gülçiçek, and Şerif Bahtiyar. 2021. “A Hybrid Machine Learning Model to Detect Reflected XSS Attack”. Balkan Journal of Electrical and Computer Engineering 9 (3): 235-41. https://doi.org/10.17694/bajece.927417.
EndNote
Buz B, Gülçiçek B, Bahtiyar Ş (July 1, 2021) A Hybrid Machine Learning Model to Detect Reflected XSS Attack. Balkan Journal of Electrical and Computer Engineering 9 3 235–241.
IEEE
[1]B. Buz, B. Gülçiçek, and Ş. Bahtiyar, “A Hybrid Machine Learning Model to Detect Reflected XSS Attack”, Balkan Journal of Electrical and Computer Engineering, vol. 9, no. 3, pp. 235–241, July 2021, doi: 10.17694/bajece.927417.
ISNAD
Buz, Beraat - Gülçiçek, Berke - Bahtiyar, Şerif. “A Hybrid Machine Learning Model to Detect Reflected XSS Attack”. Balkan Journal of Electrical and Computer Engineering 9/3 (July 1, 2021): 235-241. https://doi.org/10.17694/bajece.927417.
JAMA
1.Buz B, Gülçiçek B, Bahtiyar Ş. A Hybrid Machine Learning Model to Detect Reflected XSS Attack. Balkan Journal of Electrical and Computer Engineering. 2021;9:235–241.
MLA
Buz, Beraat, et al. “A Hybrid Machine Learning Model to Detect Reflected XSS Attack”. Balkan Journal of Electrical and Computer Engineering, vol. 9, no. 3, July 2021, pp. 235-41, doi:10.17694/bajece.927417.
Vancouver
1.Beraat Buz, Berke Gülçiçek, Şerif Bahtiyar. A Hybrid Machine Learning Model to Detect Reflected XSS Attack. Balkan Journal of Electrical and Computer Engineering. 2021 Jul. 1;9(3):235-41. doi:10.17694/bajece.927417

Cited By

All articles published by BAJECE are licensed under the Creative Commons Attribution 4.0 International License. This permits anyone to copy, redistribute, remix, transmit and adapt the work provided the original work and source is appropriately cited.Creative Commons Lisansı