php - 网站被攻击,每天会多出一些会员数据。
高洛峰
高洛峰 2017-05-16 13:04:56
0
10
554

这几天发现我们的网站突然多了很多会员,这些会员都是差不多的,但是会员只能通过后台系统添加,改了后台密码还是会出现,后台操作日志上没有操作信息。
后台可添加的字段那里是没有company字段的,因此不太清楚被人是用什么方式攻击的。
这里是被注入的数据:

这里是网站的会员数据:

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(10)
PHPzhong

First, check the firewall. If the website has no special port requirements, just open 80. Like 3306, 22, etc., only the company's internal network can be accessed.

Second, change all passwords for database, backend, etc. (the password should be longer, uppercase and lowercase, and have special symbols).

Third, if the backend only needs to be accessible by the company, try to hide the URL as much as possible. Also do a test (i.e., only allow the company’s network to be accessed in the background)

Fourth, if there is a member registration at the front desk, make sure there is a verification code and security check (that is, for the same IP, there must be a gap in the time between member registrations)

Make sure that after completing the above, let the programmer check the system logs, database logs, program logs... and whether there are any loopholes in the program code

某草草

Add a verification code when registering!

迷茫

Get your database address + account number + password directly, and then directly operate your database. See, is it easier?

PHPzhong

Check the operation log of mysql, if it is not enabled, enable it and wait.

巴扎黑

It may be a SQL injection attack. Even if you change the SQL password, you still need to configure the correct password in the production environment. If you don’t modify the SQL vulnerability, he can still inject some data and replace all SQL statements with PDO:: Write the prepare parameter binding method, and then observe whether the problem is solved. In addition, if the system is used internally, it should not be opened to the external network and accessed through internal IP.

PHPzhong

Bind Baidu Cloud Observation. Then the database account must be bound to IP
Sql injection and check to see if there is some form that has not been processed

習慣沉默

It would be much better to add a verification, but some also do verification identification, then you can also do IP restrictions. If an IP operates too frequently, limit the operation of this IP! Of course, experts can also keep changing IP attacks, it depends on how valuable your website is!

伊谢尔伦

Check the mysql log and see the operation records

漂亮男人

Check the log first to determine where the writing point is.

滿天的星座

Is your database isolated?

We were also attacked. The SMS sending interface was constantly requested without verification before, which directly caused our SMS service to become unusable

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template