Chapter 14
Web application and database forensics
CHFI domains 1, 3, 4, 5, 6
Case brief. A customer record changed after an unusual HTTP request. Did the request reach the database and commit a change?
Northgate Rail’s customer portal shows a passenger account whose email address changed at 03:12 on Thursday. The passenger did not make the change. Minutes before, the web application firewall logged an unusual request to the profile page. The rail operator needs to know whether that request actually reached the database and changed the record, or whether the two events are a coincidence.
The readings follow the request layer by layer: identifiers that join WAF, proxy, IIS or Apache and application logs; the signatures of injection, traversal, XXE, tampering and brute-force attacks, including against a WordPress site; and the MySQL and SQL Server records that show whether a transaction was committed.
Inspect the three records, then use the evidence to answer the question.
1. WAF
03:11:58 request id 7f3a91c2 to /account/profile, action: logged, not blocked
2. Application
03:11:59 request id 7f3a91c2 UpdateProfile user 552190
3. Database
binlog: UPDATE customers SET email=… WHERE id=552190, COMMIT at 03:12:00
Chapter readings
What you will submit
A request-to-transaction trace that identifies the last verified step and any missing link.
Tools you will use: Log parsers, SQL Server Management Studio, ApexSQL Log, MySQL binlog tools